• 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: osascript and Modification Date of Compiled Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: osascript and Modification Date of Compiled Script


  • Subject: Re: osascript and Modification Date of Compiled Script
  • From: Michael Terry <email@hidden>
  • Date: Wed, 17 Mar 2004 12:12:43 -0800

On Mar 17, 2004, at 5:03 AM, Jeffrey Berman wrote:

Can 'osascript' be used to run a compiled script without changing the
modification date of the script file, as occurs when using the 'run script'
command within AppleScript to run the same script?


I doubt it. You can try to avoid modifying any top level entities you might use, whose changes are automatically saved in most cases. You probably don't have to worry about resetting handler definitions, since most people don't do that. A little more likely problem might be any top level script objects you have--don't use/change those either. Of course, as has been pointed out, no globals or properties allowed. Luckily, unlike SE and Script Menu, osascript doesn't seem to save the result variable between runs; I didn't realize script runners had a choice about which objects to save.

If you don't need to type it in at the terminal every time, but are rather storing it away in a shell script, how about just:

osascript -e 'run script "/Temporary Items/test.scpt/" as posix file as alias'


Mike
_______________________________________________
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: osascript and Modification Date of Compiled Script
      • From: Michael Terry <email@hidden>
References: 
 >osascript and Modification Date of Compiled Script (From: Jeffrey Berman <email@hidden>)

  • Prev by Date: Re: How to detect a file has resource fork, or not?
  • Next by Date: How many files could a Finder find if a Finder could find files?
  • Previous by thread: Re: osascript and Modification Date of Compiled Script
  • Next by thread: Re: osascript and Modification Date of Compiled Script
  • Index(es):
    • Date
    • Thread