Parameters for "path to" Command
Parameters for "path to" Command
- Subject: Parameters for "path to" Command
- From: Jeffrey Berman <email@hidden>
- Date: Sat, 20 Jul 2002 23:34:13 -0500
While examining the sample "Open Special Folder" script installed with
AppleScript (it is in the "Navigation Scripts" folder), I noticed there are
some four-character codes that can be used as parameters in the "path to"
command. For example, to obtain the path to the "Documents" folder, one
can use the command:
path to "docs"
However, when I looked in the Standard Additions dictionary, these
four-letter codes were not listed in the "path to" entry. Moreover, by
trial and error, I discovered additional parameter names that also seem to
return results. For example,
path to voices folder
returns an accurate path, although the use of a "voices folder" parameter is
not listed in the Standard Additions dictionary. Similarly, the extremely
useful:
path to frontmost application
is not documented in the Standard Additions dictionary.
When I searched the Apple Knowledge Base, the only relevant entry I located
was the Release Notes for AppleScript 1.7 (Article ID 75205), which states:
"The Standard Additions dictionary shows many possible parameters for the
'path to' command, some of which are only available on Mac OS 9 and others
that are only available on Mac OS X. In addition, the command works on many
other values ("four-character codes") that do not have terms defined for
them."
Unfortunately, the available parameters are never specified. Does anyone
know of a source listing all the four-letter code and name parameters for
the "path to" command?
-Jeffrey Berman
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.