this is fundamental to the way scripts work.
When a script is run, all global variables and properties are saved in the
script file itself - this is so that they are persistent between runs of a
script.
for example this script:
property rememberedNumber : "1"
set theAnswer to display dialog "What number shall I remember?" default
answer rememberedNumber
set rememberedNumber to text returned of theAnswer
if saved and run will remember whatever number you enter into it and will
display it on the next run. it does this by saving the 'rememberedNumber'
property each time the script is run.
This _can_ be avoided by never using properties and making sure that ALL
variables are defined inside handlers and so are local, but this is often much
more trouble than it is worth.
--
Barry
On 29 Dec 2009, at 18:00, Jim Robertson wrote:
> I've asked this before. Probably it doesn't NEED an answer, because
> everything works fine.
>
> HOWEVER...
>
> People who've been on Entourage-Talk and YouTalk for a long time may
> remember me asking questions regarding how I keep my Main User Identity
> "backed up" and synchronized between my desktop and portable Macs (make sure
> to use only one copy of the application at once, make sure to quit ALL
> Office apps before updating the computer not in use, make sure to quit ALL
> processes associated with Office before doing so (most importantly the
> Database Daemon), and allow "Synchronize! Pro X" to do the synchronization.
>
> A curiosity about this is that if I use one of the installed AppleScripts in
> Entourage, next time I do a file sync, Synchronize! Pro X copies the that
> script to the target computer, even though it's already installed. I've
> asked before if running these scripts changes them, and the answer I've
> received is "no." However, I've just done a Finder "Get Info" on the scripts
> in my Entourage Script Menu Items, and each of them reports a file
> modification date identical to its last opened date (and, in the instance of
> the "About this Menu" script, what it reports is WRONG; I just ran the
> script, yet it reports that it hasn't been opened or modified since 3/38/08,
> whereas all the other scripts report their "last opened" date as the same as
> the date they were last used).
>
> Perhaps the "About this menu" script uniquely reports its "last opened" date
> as the last time it was opened in Script Editor, whereas all the others
> report their "last opened" and "Modified" dates as of when they were
> executed?
>
> Is this important? I don't know, but curiosity has killed many a cat...
>
> Jim Robertson
> --
>
>
>
> --
> YouTalk mailing list
> List address: [email protected]
> List information: http://entourage.mvps.org/support_options/list.html
> List moderator: [email protected], [email protected]
> To unsubscribe: mailto:[email protected]?subject=unsubscribe
--
YouTalk mailing list
List address: [email protected]
List information: http://entourage.mvps.org/support_options/list.html
List moderator: [email protected], [email protected]
To unsubscribe: mailto:[email protected]?subject=unsubscribe