• 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: Speed help please!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Speed help please!


  • Subject: Re: Speed help please!
  • From: Nigel Garvey <email@hidden>
  • Date: Fri, 16 Aug 2002 01:30:29 +0100

Paul Abney wrote on Thu, 15 Aug 2002 11:36:03 -0500:

>I have downloaded a script to organize the windows on my desktop. It
>collapses the windows and moves them to a point on my desktop. This script
>has always worked, however it seemed rather slow. But it suited my needs
>perfectly so I go used to it. However one day last week, for some unknown
>reason to me, the script ran like the wind. UNTIL I rebooted my machine. I
>would love to recapture the speed that I saw on that day, but have no clue
>why it ran faster or what I could do to make it faster.
>I am running os 9.2, applescript 1.8.3, and the script is triggered using
>osa menu 1.2.2.
>Any help would be greatly appreciated. The script follows:

I don't know why your script suddenly sped up last week, but this is
faster anyway:

tell application "Finder"
activate
set {c, d} to the size of the desktop's content space
set c to c div 2
set d to d div 2
set p to 88
set q to p
tell (every window whose popup is false and name is not "Launcher")
if it exists then
set {size, collapsed} to {{c, d}, true}
repeat with l in reverse of (it as list)
set q to q + 20
set l's position to {p, q}
end repeat
end if
end tell
beep 2
end tell

It seems to do everything the original does except collapse the Launcher
window.

NG
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: deliminated (was Re: Perl or Applescript w/ Excel)
  • Next by Date: RE: Output to PDF/PostScript (I WANT REAL ANSWERS!)
  • Previous by thread: Speed help please!
  • Next by thread: Scripting Acrobat Suite
  • Index(es):
    • Date
    • Thread