keshalyi Posted April 22, 2003 Posted April 22, 2003 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.
jfmcel Posted April 22, 2003 Posted April 22, 2003 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.
cjaeger Posted April 22, 2003 Posted April 22, 2003 ... 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?
Recommended Posts
This topic is 7884 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now