The Right Path

Here’s a stupid question but would be help full to me.

When writing a script, I would like to call the path of the script itself.

set thePath to path of me

I’m sure this is an easy one… why do I feel so dense?

You’re SO close:

set thePath to path to me

not path OF me.

Just be careful when running the script in a script editor rather than standalone - you may get the path of the editor, not your script file.

Thanks Camelot! I knew i had to be close… :slight_smile: