Re: Libraries and effiency
Re: Libraries and effiency
- Subject: Re: Libraries and effiency
- From: Philip Aker <email@hidden>
- Date: Mon, 9 Aug 2010 05:25:37 -0700
On 2010-08-09, at 04:11:29, Shane Stanley wrote:
> On 9/8/10 9:04 PM, "Philip Aker" <email@hidden> wrote:
>
>> If you plan on altering the interior files of an application package at runtime, it's not approved of. Think what will happen when your app is on a read-only disk.
> But it happens with scripts and their properties all the time.
I have seen at least 100 discussions on the Carbon list about where one keeps their modifiable user data. The stern recommendation from all experienced Mac developers, including Apple engineers is that you use the designated folders for mutable data because you simply can't write back data to a read-only disk.
I'm wondering if you're only considering the situation where you run your application from your user account. Of course it's possible to write in that case but completely different if you say put it on a read-only disk image (DMG). Try this at home!
ยง
With regards to the location of script library folders in an application package, I'd like to point out that the correct location might be more properly be in one or another of the following:
My.app/Contents/Library/Scripts/Modules
My.app/Contents/Library/Modules
(path to script library folder from application domain :-)
Besides the obvious analogy to the */Library/Scripts/Modules locations we already know and love, this subfolder of an application is used for some technologies like QuickLook Generators and Metadata importers and I think the idea of script libraries falls loosely into that category.
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden