Re: 10.x References?
Re: 10.x References?
- Subject: Re: 10.x References?
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 15 Sep 2002 17:39:45 -0700
On 9/15/02 5:13 PM, "Tony Lindsey" <email@hidden> wrote:
>
This is all happening because I am attempting to build an automated
>
setup script for setting up new computers with standardized settings
>
files. I'm flummoxed when I try to get the path to the user's Home
>
Folder, and then drill downward until I can install the settings in the
>
Library/Preferences sub-folders. How do I establish the current user's
>
Home Folder as a variable using Applescript?
You didn't by any chance try:
path to current user folder
?
For the others, there's no need to "drill down", especially because you'll
get it wrong if their computer uses a language other than English (the
folders won't be called "Library", "Preferences", etc.)
Use the expression
from user domain
(as opposed to 'from local domain' for main Library and contents, 'from
System domain' for anything in the System folder, 'from network domain' for
things on remote servers).
So
path to preferences from user domain
This is documented in the 'path to' scripting addition, in detail in Bill
Cheeseman's AppleScript Sourcebook website. (Bill doesn't pull things).
Then there are a lot more special folders available to 'path to' as
4-character strings. They're listed in a file on Chris Nebel's iDisk.
--
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.