April 22, 200322 yr Is there a way to have an applescript return the path where it is saved? That is, if I put an applescript in My HD:Folder1:Folder2:Applescript, I want to be able to divine its location. What I'm trying to do, is have the applescript open another file, using a location relative to its own location. So, in the above example, the applescript would need to read data out of a text file at My HD:Folder1:Folder3:textfile.txt. But, I don't want to hardcode the hard location, just the location relative to the applescript, so taht I can move it if neccesary.
April 22, 200322 yr use... (path to me) as string and then parse out the parent folder. Be aware, if you run the script within a FileMaker scriptmaker script, you will get the path to the application.
April 22, 200322 yr ... and if you run it in Script Editor, ditto. you will have to save the script as application in order to use this command. But why not call the script with the files list?
Create an account or sign in to comment