Scripting Additions Guide
Table Of Contents
CHAPTER 2
Scripting Addition Commands
44 Command Definitions
SYNTAX
path to folderOrApplication
[ as className ]
PARAMETERS
folderOrApplication
One of these constants:
apple menu
apple menu items
control panels
desktop
extensions
preferences
printmonitor
printmonitor documents
trash
startup items
system folder
temporary items
startup disk
frontmost application
className The class identifier string. If you omit this parameter, the
pathname is returned as an alias.
RESULT
An alias by default, or a string if you include the optional as string
parameter.
EXAMPLES
path to control panels
--result: alias "Hard Disk:System Folder:Control Panels:"
tell application "Scriptable Text Editor"
set x to path to it as string
end tell
--result: "Hard Disk:Scriptable Text Editor"