Snow Leopard 10.6.1.
While trying to test a script, I encountered a long delay where
there should not be any delay. I finally traced the problem to a
single command. Here is the script ...
set elapsedTime to (current date)
system info
(current date) - elapsedTime
This script returns 32 sec on my Mac.
The system info command belongs to the StandardAdditions.osax
and until today, I had not noticed any delay at all.
Switched from a Standard to an Admin user ... same result.
Restarted ... this fixed the problem.
Now, I'm curious. Anyone know anything specific about why this
happened?
Hello Luther,
Difficult to tell... :-)
Now, it is clear that the "system info" command queries various parts
of the system so as to gather the needed data; it is thus possible
that the delay isn't an AppleScript one at all but reflects some
hiccups at the system level.
Could you have a look at the various logs with the help of
Console.app, at the time you encountered those delays?