Re: Why Slow Then Fast
Re: Why Slow Then Fast
- Subject: Re: Why Slow Then Fast
- From: Nathan Greenstein <email@hidden>
- Date: Tue, 7 Sep 2010 12:16:47 -0700
My only guess (and it's just a guess; I'm far from an expert) is that it's already stored what it needs in memory.
To get a better idea of what's going on, it would be helpful to see the code of the handler you call.
HTH,
--
On Tue, Sep 7, 2010 at 10:51, Luther Fuller
<email@hidden> wrote:
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
_______________________________________________
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