set EditorPosixPath to "/Applications/Utilities/AppleScript\ Editor.app"
set PlistPosixPath to "/Applications/Utilities/AppleScript\ Editor.app/Contents/Info.plist"
set EditorMacPath to "Macintosh HD:Applications:Utilities:AppleScript Editor.app:"
set AlternativeEditorPosixPath to POSIX path of EditorMacPath
-- POSIX file / alias must be used outside of Finder's scope
set EditorFile to POSIX file EditorPosixPath
set PlistFile to POSIX file PlistPosixPath
-- only for files
set PlistAlias to alias PlistPosixPath
-- as alias / container of are Finder's functions
tell application "Finder"
set EditorPath to EditorFile as alias
set ParentFolder to container of EditorPath
<!-- code language:text title: shell:false -->
display dialog ParentFolder as text
<!-- code end -->end tell
Es gibt noch keine Kommentare