Newbies Julie Posted July 11, 2003 Newbies Posted July 11, 2003 I am just getting back into Filemaker Pro and need help. I am using the MAC platform. How do you link unique files to specific records? Thanks
Fitch Posted July 11, 2003 Posted July 11, 2003 You mean files outside of FileMaker? This might work for you: store the path in a field and use the Open URL step.
Newbies Julie Posted July 11, 2003 Author Newbies Posted July 11, 2003 I am using a Macintosh version. I have written a script using the Perform URL which works, but how do you attach it to one record? Right now, the script performs the same action on all records (I had attached it as a button). I thought if I defined the field as a container, I would be able to attach a specific script, but I can't figure out how to attach anything into the container field. Sorry for being so naive about this, I'm sure it is pretty straight forward. I appreciate your help.
CobaltSky Posted July 11, 2003 Posted July 11, 2003 Hi Julie, The Open URL command, available within ScriptMaker, provides the option to source the URL from a field - which can be a field in the current record. If you can contrive to place the path to the file that you wish to open for a given record into a field - or alternatively to calculate it based on values within the record etc, then your Open URL command will execute accordingly. BTW containers can store links to files on the Windows platform, but they don't work that way on MacOS.
Fitch Posted July 11, 2003 Posted July 11, 2003 IOW, don't use a container field, use a text field and make a script the references that field in the Open URL script step. Alternatively, you could use an Applescript such as (example simplified): tell application "Finder" open file "xyz" end tell But again, you have to explicitly tell it the path.
Newbies Julie Posted July 11, 2003 Author Newbies Posted July 11, 2003 Thank you all. I understand and have set it up, but now I can't get it to run, I created the Open URL script to specify that field and put the following information into the FIELD, but it doesn't want to recognize it. Any suggestions? "file://MacintoshHD/Users/xxxxx/Documents/file_name.ppt" If I delete the "file:" the script trys to open it as an http: Am I missing something here??
CobaltSky Posted July 12, 2003 Posted July 12, 2003 Hi Julie. On the face of it the thing you are missing is a slash. Http references start with http://, but file references start with file:/// and you've quoted a hybrid in your post. Even with the third slash in place, how successfully and efficiently it works will depend on your computer and browser set up. A much cleaner solution is to be had if you use a plug-in such as DialogMagic or Troi File, which provide external functions to open/launch files directly into other applications. However there is a cost involved with going that track.
Newbies Mark H Posted July 17, 2003 Newbies Posted July 17, 2003 Is there any way to open up an explorer window and select a file to link to? Thanks
CobaltSky Posted July 17, 2003 Posted July 17, 2003 Hello Mark, If I understand correctly what you're asking, then yes, there is. That is what the "Open URL [ ]" command does when you pass it a file:///... parameter.
Newbies Mark H Posted July 17, 2003 Newbies Posted July 17, 2003 Is there any way to the get the file which is selected in the explorer window back to the database so it can be used to automatically link out next time?
Lee Smith Posted July 17, 2003 Posted July 17, 2003 Hi Mark, Here are a couple of files that use AppleScript (I think) to do this. Grab FilePath to Field by: Unkown URL: http://www.fmfiles.com/dev2.html URL Grabber Installer by: Matt Petrowsky URL: http://www.fmfiles.com/enduserhom5.html
Recommended Posts
This topic is 7870 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