Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using OS X 10.6 & Filemaker Pro 12; I'd like to have a script in FM to automatically open a .pdf file from a container field using Preview (dumping the file on the desktop) but it has to be using a variable path for whomever is using this particular hosted file in our local (or remote) office network

share|improve this question
add comment

1 Answer

I see that this question is a little old, but for anyone who comes across it now looking for help...

It sounds like what you need is the "Get ( DesktopPath )" function, as part of a Set Variable script step. It would be something like this (in pseudocode):

Set Variable $filepath ( Get(DesktopPath) & "filename.pdf")
Export from field ( FieldWithPDF, No Dialog) {{NB: check the box that says "Specify output file" and set it to "$filepath"}}

Also, be aware that if you're in a mixed environment (Windows & Mac), you may need a slightly more complicated Set Variable statement to accommodate for different path notations (see http://www.filemaker.com/11help/html/create_db.8.32.html).

share|improve this answer
    
Welcome to SuperUser! We have no rules against answering old questions here. All knowledge is worth having. –  David Mar 6 at 17:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.