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

osascript and Modification Date of Compiled Script


  • Subject: osascript and Modification Date of Compiled Script
  • From: Jeffrey Berman <email@hidden>
  • Date: Wed, 17 Mar 2004 07:03:06 -0600

Is there a way to run a compiled AppleScript from a Unix shell using the
'osascript' command without altering the modification date of the script
file?

For example, if I save a compiled script named "TestScript" to the desktop
containing the single command:

set TestVar to 1

and run this script from a Terminal shell with the command:

osascript ~/Desktop/TestScript

the modification date of the file "TestScript" changes.

And if I lock the file "TestScript" and run it with 'osascript' from a
shell, the following error is returned:

osascript: couldn't save changes to script

with error number -54.

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?

-Jeffrey Berman
_______________________________________________
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: Jeffrey Berman <email@hidden>
    • Re: osascript and Modification Date of Compiled Script
      • From: Michael Terry <email@hidden>
    • Re: osascript and Modification Date of Compiled Script
      • From: "John W. Baxter" <email@hidden>
  • Prev by Date: Re: finding new files in a folder
  • Next by Date: Re: GUI Scripting mystery
  • Previous by thread: Re: finding new files in a folder
  • Next by thread: Re: osascript and Modification Date of Compiled Script
  • Index(es):
    • Date
    • Thread