• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AppleScript runs slow on Intel Macs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript runs slow on Intel Macs


  • Subject: Re: AppleScript runs slow on Intel Macs
  • From: Martin Orpen <email@hidden>
  • Date: Fri, 22 Sep 2006 00:17:02 +0100

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: 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>)

  • Prev by Date: Re: AppleScript runs slow on Intel Macs
  • Next by Date: iTunes 7.0/QuickTime 7.1.3 causing crashes on 10.3.9 systems
  • Previous by thread: Re: AppleScript runs slow on Intel Macs
  • Next by thread: Re: AppleScript runs slow on Intel Macs
  • Index(es):
    • Date
    • Thread