Re: Installer Question... (Was Re: Where's the cookie, monster?)
Re: Installer Question... (Was Re: Where's the cookie, monster?)
- Subject: Re: Installer Question... (Was Re: Where's the cookie, monster?)
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 15 Nov 2002 20:06:34 -0800
On 11/15/02 3:16 PM, "Peter Bunn" <email@hidden> wrote:
>
I need to create a folder in an Applications folder (or perhaps
>
elsewhere) on an OS X drive. The folder's name and location with respect
>
to the startup disk must not be changed... else my stuff tends to come
>
apart right quick. The folder would contain only aliases that my scripts
>
reference. In 'Classic', I might put such a folder in the Preferences
>
folder... even though it contains no actual preference files.
>
>
Is it acceptable practice to place such a folder in the 'main'
>
Applications or Preferences folders of the startup disk in OS X? My own
>
preference would be to do so... rather than the current user folder.
>
Being a strictly single user myself, I'm not yet clear on how multiple
>
users works.
>
>
In OS X (AS 1.8.3) the Finder dictionary makes no reference to special
>
folders. Are there any? If the Applications folder is among them, will
>
a change to its location or displayed name alter the way its referenced
>
by AS? I note that its displayed name can't be changed without
>
"sufficient" priveleges.
Forget the Finder. Look in the 'path to' scripting addition in Standard
Additions. You'll find most of what you need there. Pay close attention to
'from user domain' and 'from local domain'. (In OS X you can never write to
the system domain, so forget that one for now.) Preferences are always user
domain so you can even omit the domain and it will always be
path to preferences --from user domain
A good place for your folder would be the Applications Support folder.
there's one in the user's own ~/Library/Applications Support/ and another
for all-user computer-wide use in /Library/Applications Support/. you can
specify whichever you want, good for all localizations, via
path to application support from user domain
path to application support from local domain
respectively. if you're going to be making folders there, get the path
outside the Finder (don't use 'path to' inside a Finder tell block):
set appSupportPath to (path to application support from local domain as
string)
then make or move your own folder in the Finder:
tell app "Finder" to make new folder in folder appSupportPath with
properties {name:"My App's Extras"}
--
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.