osascript and Modification Date of Compiled Script
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.