• 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: 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.

  • Follow-Ups:
    • Re: Date Modified
      • From: Lachlan Deck <email@hidden>
References: 
 >Re: Date Modified (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Date Modified
  • Next by Date: Trying to script the creation of a script
  • Previous by thread: Re: OT: AppleScript cartoon
  • Next by thread: Re: Date Modified
  • Index(es):
    • Date
    • Thread