Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7884 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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.

Posted

... 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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.