• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Date Modified
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Date Modified
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Date Modified (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Trying to script the creation of a script
  • Next by Date: constructing file name
  • Previous by thread: Re: Date Modified
  • Next by thread: Re: Date Modified
  • Index(es):
    • Date
    • Thread