Thanks for the speedy reply. It looks like you’ve put me in the right direction. When i ran the one liner, it gave me a path error:
X:Applications:AppleScript:installer.mpkg wasn’t found
I want to put the script on a CD rom, how would i point to the installer if it’s on the CD? Clarification: both script and installer are on the cd in the same folder.
This can’t be run from the Script Editor. When run from SE, the “path to me” command will return the path to SE. When saved as a script application and run from the Finder, it will return the path to the script application.