Open URL can open a file with a given file path.
You can also use Insert File with a file path to insert a file and then Export Field Contents can be used to open a copy of it or Go to Field [Select/Perform] can open the original if you insert with the "store a reference" option specified.
Thanks for the tip on Open URL Phil, however, no matter what I pass to the Open URL step, FM (or the browser?) prefixes the URL with http://
using Mac OS X, FMPA 11, Safari.
and of course files are on a server, so attempting to natively 'open' them from the browser to check their path isn't happening...
also trying Send Event, with no success ...
Open URL works for me in Windows.
I can pass either this:
As quoted text or as text in a text field and FileMaker opens FileName.PDF in Acrobat Reader.
I seem to recall a post here that indicated that this doesn't work on Macs, but not being a Mac user, I can't confirm that.
And don't forget that you can also use a container field to open your files.
Sorry, I should have been clearer in the beginning, all the files I'm trying to open are shared FM files on an FM server, and I'm trying to give users an option of which files they need to open in that session.
Only one is fully password protected, and its opening script requires a ReLogin.
Then none of these methods should be used to open the file. (Even if it worked to access the correct file, it would be the scripted equivalent of double clicking the actual file in a shared directory and that can damage the file.)
Best you can do is set up explicit Open File script steps inside IF blocks:
If [ $$FileName = "Database 1" ]
Open File [Database 1]
That's what I was considering doing....
I know it's an old thread, but in case someone still needs this, the solution is actually the following:
Use the "Open URL" script step with the following URL:
Filemaker 11 and less
Filemaker 12 and above
And of course the URL can be a calculated value and can contain a variable or a field value. So if you're trying to create some kind of launcher file that lists all the files available and you want to be able to dynamically open a file by clicking on it in a portal, this is the ideal solution