Re: Date Modified
Re: Date Modified
- Subject: Re: Date Modified
- From: Shane Stanley <email@hidden>
- Date: Mon, 23 Feb 2004 10:17:42 +1100
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.
I had to do this rigorously once for someone who wanted a script that
could
be run on multiple users' computers from an Applications subfolder on a
server somewhere where they had no write permissions. It never got its
modification date changed and never had any problem with permissions.
Under OS 9 I used a simpler approach: locking the file. I wonder
whether that works with the permissions business...
--
Shane Stanley <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.