September 30, 200718 yr Am trying to use the filepath of a file stored in a field (Not the POSIX Path) to open the file using applescript. I have the following script steps Set Variable [$FilePath; Value: DocumentLibrary::File Path] How can I use this variable $FilePath in a "Perform Applescript" Script step?
September 30, 200718 yr You just need to massage the path into an applescript and use the variable's value as text for the calculated script, not the dafault option, but the one above! Substitute( and Replace( comes in pretty handy here! --sd
October 1, 200718 yr Author If the code were tell app "Finder" open $filepath end tell How should I have "Stringified" the above script. In otherwords how do I add the return keys at the end of each line. Use the inverted P character?
October 1, 200718 yr Just use the carriage return symbol, ¶ (Option-7 on Mac), just like any other FileMaker calculation. "tell app "Finder"¶open ("" & $FilePath &"") as alias¶end tell" Edited October 1, 200718 yr by Guest
Create an account or sign in to comment