Re: Libraries and effiency
Re: Libraries and effiency
- Subject: Re: Libraries and effiency
- From: Tommy Bollman <email@hidden>
- Date: Mon, 9 Aug 2010 16:42:51 +0200
Hello,
Script are usually stored on writable media. And they store their data internally, as properties within the script if you want that. You may also take action not to. AppleScript is meant to be a low entry point for writing code, and should continue to be such in the future.
-It all depends on what kind of data we are talking about. Sometimes there is practical use of having things stuffed in a property list or a text file for that matter, other times not.
On 9 Aug 2010, at 14:25, Philip Aker wrote:
> 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
>
Best regards
Tommy Bollman
--------------------------------------------------------------------------------------------------
Mollison's Bureaucracy Hypothesis:
If an idea can survive a bureaucratic review
and be implemented it wasn't worth doing.
_______________________________________________
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