abailey3 Posted August 5, 2011 Posted August 5, 2011 Sorry if this has already been asked, but I wasn't able to find an answer. I'm trying to set up a link from within my Filemaker database that would open a specified folder (in this case, the file path would be based on a calculation). I'm currently using Container fields to display images stored in a folder. Essentially, all I'm trying to do is include a link on that screen that would open that folder up. The caveat, potentially, is that the container fields aren't permanent. They're just global fields that pull in the appropriate image when someone wants to view it. Since all the actual image files are saved on a server, the need was only to be able to view through the database frontend, not store. Thanks in advance for any help.
bcooney Posted August 5, 2011 Posted August 5, 2011 Can't be done without a plugin. That is, you cannot point FM to a specific OS folder. PS: I'll move this to the appropriate sub-form. Check out 360works Scriptmaster (it's free).
comment Posted August 5, 2011 Posted August 5, 2011 Can't be done without a plugin. That is, you cannot point FM to a specific OS folder. Well, you know what's going to happen when you put it like this... OpenEnclosingFolder.zip Not tested on Windows. BTW, you could also use Perform AppleScript[] if on a Mac and - I believe - Send Event[] if on Windows.
bcooney Posted August 6, 2011 Posted August 6, 2011 Alright, I'll look at this fancy script. Give me a couple of days, though.
abailey3 Posted August 9, 2011 Author Posted August 9, 2011 I'll have to check that out. I should have probably also mentioned that I'm trying to set this up for users in a mixed environment, so any solution would ideally be compatible on both Macs and PCs.
LaRetta Posted August 10, 2011 Posted August 10, 2011 Michael, It works perfectly on Windows as well!
comment Posted August 10, 2011 Posted August 10, 2011 Thanks - I couldn't remember if Windows required another slash or not.
bcooney Posted August 11, 2011 Posted August 11, 2011 Brilliant. I read too quickly and didn't realize that he'd have the path to the file (and therefore would be able to calc the directory).
abailey3 Posted October 5, 2011 Author Posted October 5, 2011 I'm sorry, I just realized I never checked back in on this. Your solution took a little bit of tweaking to make it fit, but it worked really well. Thank you!
Charity Posted October 22, 2011 Posted October 22, 2011 I just saw that script and it has a Go To Field(nothing). Can you explain why you put that? I watch and it makes me leave the field but so does commit records. and the action looks identical when I run it so it must be something behind the scenes.
comment Posted October 22, 2011 Posted October 22, 2011 There is practically no difference, esp. if the layout is set to commit automatically. However, I prefer to use Go to Field[] when the purpose is to deselect - even if the record may be committed as a result.
Charity Posted October 23, 2011 Posted October 23, 2011 Hello Comment, thank you for taking time to respond. First time in reading a zillion of your posts that something doesn't fit. even if the record may be committed as a result. So you are using it, not to commit the record, but to leave the field (deselect). As far as I can tell, that action always commits and the person may not be ready. Is it not in this 'tween' state where person is possibly entering data in new record and has option to revert (even removing children if any were created at same time)? There must be other protections you use then in most cases or there is something about this specific demo that creates an exception. You do not always use that do you? I picked up idea of using Go To Object[Object] from LaRetta a few months ago which leaves the field but does not commit. I realize I must make many decisions about committing when working with scripting under covers. But when on layout with person then I think the person should decide whether and when to commit their entry. Am I wrong?
comment Posted October 23, 2011 Posted October 23, 2011 No, you are not (entirely) wrong. However, this demo is not about committing or reverting - and as a rule I try to keep them as simple and as focused as possible. Perhaps I should have simply left the cursor in the container field. As far as I can tell, that action always commits I am not sure I'd agree with the "always" part. First time in reading a zillion of your posts that something doesn't fit. I am sure there will be others... :laugh2:
Recommended Posts
This topic is 4788 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now