Re: Where should AppleScripts reside?
Re: Where should AppleScripts reside?
- Subject: Re: Where should AppleScripts reside?
- From: Uli Kusterer <email@hidden>
- Date: Sun, 20 Jan 2008 13:07:56 +0100
On 20.01.2008, at 12:52, Uli Kusterer wrote:
It's a trade-off, as always: If you can, make your app self-
contained, but if it has user-serviceable parts, put them in one of
the recommended folders inside Library, so users can customize them
individually.
Oh, forgot to mention: There is another reason for not putting your
customizable stuff in /Applications: Usually, only admin users have
write access there.
Also, one can take advantage of the fact that there are several
library folders: One for each Mac, one for each user, etc.
So you can use the user's folder to override or augment stuff higher
up the hierarchy. I wrote a generic plugin-loading class that first
searches in MyApp.app/Contents/Plug-ins, then in /Library/Application
Support/MyApp/Plug-ins, then in ~/Library/Application Support/MyApp/
Plug-ins etc. That way, I can put default, "built-in plugins" (i.e.
modules of my app that just use the plugin protocol to do their work)
in my app, where they can't be removed or renamed. An admin can
install plugins the whole company needs in /Library/... and the user
herself can install plugins she wants in ~/Library/...
Cheers,
-- M. Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden