Home / Blog / FileMaker / A Taste of Applescript
23May 2014

A Taste of Applescript

About the Author

Comments (1)

Rob - July 9, 2014

Your script assumes that the user’s “home” drive is called “Macintosh HD”.

To make your script more portable, maybe you can extract the name of the boot drive from the documents path with this:

set variable [ $homeDrive ; GetValue ( Substitute ( get ( documentspath ) ; “/” ; ¶ ) ; 2 ) ]

and then doing your $fileLocation substute using that value with appropriate wrappers.

However, if the user’s documents location is not on the boot drive, that might not work either.


Leave a Reply