Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript runs slow on Intel Macs



On 22 Sep 2006, at 00:01, Michelle Steiner wrote:

But why does this script take anywhere from 18 to 25 seconds on a 1.83 GHz Intel iMac?

tell application "Finder"
	repeat 1500 times
		get current date
	end repeat
	beep
end tell

It doesn't on my MacBook:

Duration: 0.34s, AppleScript: 0.08s, Apple Events: 0.27s (1501)

Yet this one is almost instantaneous
set x to 0
tell application "Finder"
	repeat 1500 times
		set x to x + 1
	end repeat
	beep
end tell

Duration: 0.02s, AppleScript: 0.00s, Apple Events: 0.02s (1)

Wouldn't that speed increase be because you aren't actually doing *anything* useful in this script?

--
Martin Orpen
Idea Digital Imaging Ltd


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden
References: 
 >Re: AppleScript runs slow on Intel Mac's (From: Leif Ă–quist <email@hidden>)
 >Re: AppleScript runs slow on Intel Macs (From: Christopher Nebel <email@hidden>)
 >Re: AppleScript runs slow on Intel Macs (From: Michelle Steiner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.