Re: Date Modified
Re: Date Modified
- Subject: Re: Date Modified
- From: Lachlan Deck <email@hidden>
- Date: Mon, 23 Feb 2004 11:55:57 +1100
Hi there,
On Monday, February 23, 2004, at 10:17 AM, Shane Stanley wrote:
On Feb 23, 2004, at 5:14 AM, Paul Berkowitz wrote:
If it's ever important to you NOT to have a script modified when run
- for
example, when you know that the script may be stored in Applications
folder
or anywhere outside the user folder, where the user may not have write
permissions, then you should declare every single variable in the top
level
or run handler as local. That way they pass out of existence when the
script
ends. You should have no globals or properties : write your
preferences to a
text file outside the script and read them from there.
Under OS 9 I used a simpler approach: locking the file. I wonder
whether that works with the permissions business...
While that /might/ work, Paul's suggestion follows the principle of
'feature by design' rather than by an external hack - and thus doesn't
require extra administration by the user in order to make your
application work.
with regards,
--
Lachlan Deck
email@hidden
_______________________________________________
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.