AppleScript's path to me
Fri Sep 05, 2008 · 61 words

Just something to be aware of:

POSIX path of (path to me) & "Contents/Resources" as string
-> "/Users/flepalaa/Desktop/Backup.app/Contents/Resources"
property myPath : POSIX path of (path to me) & "Contents/Resources" as string
set the result to myPath
-> "/Applications/AppleScript/Script Editor.app/Contents/Resources"

Apparently the latter is what path to me was “supposed” to mean before 10.5. AppleScript makes me want to smoke crack. :P


back · essays · credits ·