Re: Home directory
Re: Home directory
- Subject: Re: Home directory
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 02 Mar 2004 13:35:18 -0800
On 3/2/04 12:45 PM, "Rob Jorgensen" <email@hidden> wrote:
>
Here's what is available for use with "path to" according to the
>
Standard Additions dictionary on my system (10.2.8) when viewed in
>
Script Debugger. As Paul mentioned, Script Editor 2 (beta) displays
>
an incomplete list.
>
>
path to: Returns full path name to the folder or application specified
>
>
apple menu
>
application support
>
control panels
>
control strip modules
>
desktop
>
desktop pictures folder
>
extensions
>
Folder Action scripts
>
fonts
>
help
>
launcher items folder
>
modem scripts
>
plugins
>
preferences
>
printer descriptions
>
printer drivers
>
printmonitor
>
scripts folder
>
scripting additions
>
shared libraries
>
shutdown
>
speakable items
>
trash
>
startup
>
startup disk
>
system folder
>
temporary items
>
voices
>
keychain folder
>
current user folder
>
users folder
>
system preferences
>
>
[from System domain/local domain/network domain/user domain]
>
[as type class] -- the type to return: alias or string (default is alias)
Strangely, 'path to' in OS 10.3.2 is missing some of those when viewed in
Script Debugger as you're doing:
application support/applications folder/desktop/desktop pictures
folder/documents folder/favorites folder/Folder Action
scripts/fonts/frontmost application/help/home folder/internet
plugins/keychain folder/library folder/modem scripts/movies folder/music
folder/pictures folder/preferences/printer descriptions/public
folder/scripting additions/scripts folder/shared documents/shared
libraries/sites folder/startup disk/startup items/system folder/system
preferences/temporary items/trash/users folder/utilities folder/voices/apple
menu/control panels/control strip modules/extensions/launcher items
folder/printer drivers/printmonitor/shutdown folder/speakable
items/stationery
No 'current user folder', for example! But it still works. They don't seem
to be able to get this right, ever. It doesn't look like it should be so
difficult as al that.
--
Paul Berkowitz
_______________________________________________
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.