Why Slow Then Fast
Why Slow Then Fast
- Subject: Why Slow Then Fast
- From: Luther Fuller <email@hidden>
- Date: Tue, 07 Sep 2010 12:51:38 -0500
I have a script that I run from time to time. It takes about 60 sec to complete. If I immediately run it again, the script completes in 8 sec. Why?
More info. Here's the script I'm running ...
on run tell application "Finder" to set hostAppl to (container of container of container of (path to me)) as text -- hostAppl contains this application in /applBundle/Contents/Resources/ try launch application hostAppl tell application hostAppl to handlerCalledByMe() on error errText number errNr activate me "Show Labeled Error = " & errNr & return & errText tell me to display dialog the result buttons {"OK"} default button 1 end try end run -----------------------------
handlerCalledByMe is in the hostAppl because it uses other handlers in hostAppl.
So why can't it complete in 8 sec the first time it's called?
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden