"path to me" vs ":"
"path to me" vs ":"
- Subject: "path to me" vs ":"
- From: Kirk Kerekes <email@hidden>
- Date: Sat, 08 Dec 2001 11:07:36 -0600
A simple means of replacing the ":" trick with "path to me" when you want
the path to the enclosing folder is:
set myalias to (path to me)
tell application "Finder"
set mypath to folder of myalias
end tell
set mypath to mypath as string
This is shorter than using Text Item Delimiters to lop off the end of the
path, and has the advantage of not assuming the path delimiter.