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