Re: Date Modified
Re: Date Modified
- Subject: Re: Date Modified
- From: Doug McNutt <email@hidden>
- Date: Sun, 22 Feb 2004 12:12:52 -0700
At 10:14 -0800 2/22/04, Paul Berkowitz wrote:
>
All top-level variables (variables defined in the top-level of a script, the
>
implicit or explicit run handler) not explicitly declared local, are
>
actually globals aside form the scope issue (they're not recognized within
>
subroutines as globals). But they do get retained between runs, as all
>
globals do, just like properties. That means that their value at the end of
>
a script run is different than at the beginning, generally, so the script
>
has been modified.
1) Is there any other software that does such a thing? Perhaps there ought to be a consumer warning way up front to publicize the unusual - and I don't mean to imply bad - behavior. It's a bit like a preference file but more clandestine.
2) I take note that when a script is placed into an applications script menu - Eudora and BBEdit in particular - it typically does not get a new date every time it is used. That may be because the application is not cooperating with AppleScript "rules" or it may be deliberate so that the application itself behaves as it thinks it should. It's not clear if a "property" of such a script is retained between multiple invocations while the parent application remains open. That may depend on the behavior of the underlying system framework that applications use to execute AppleScripts. (I have wondered if one can give a value to a named property in one application and then use it in another.)
3) I use a script application I call MountServers every morning when I boot up my G4 into Panther. The modified date is November 2003 which is when I had to change it to work with Panther instead of Jaguar. Is the login manager following Applescript rules? (Well it's possible that the script just makes a simple call to do shell script and doesn't have any variables but the question is still real.)
4) Back in classic OS I have a AppleScript application that gets called from a cgi Applescript which responds to an HTTP event from a Linux box every half hour. The application script does get its modified time reset at each call. The cgi script does not.. What is the effect on disk fragmentation?
--
--> On the eighth day, about 6 kiloyears ago, the Lord realized that free will would make man ask what existed before the Creation. So He installed a few gigayears of history complete with a big bang and a fossilized record of evolution. <--
_______________________________________________
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.