Speed help please!
Speed help please!
- Subject: Speed help please!
- From: Paul Abney <email@hidden>
- Date: 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:
tell application "Finder"
activate
try
set collapsed of every window ,
whose popup is false to true
on error
display dialog ,
"No windows to collapse." buttons {"I knew that!"} default button
1
end try
set ls to every window whose popup is false as list
copy the size of the window of the desktop to {c, d}
copy {88, 88} to {p, q}
repeat with I in ls
if I's name is not "Launcher" then
try
tell I
set the size to {c / 2, d / 2}
set position to {p, q + 20}
copy position of I to {p, q}
set index of I to the (number of items in ls) - 40
end tell
on error
display dialog "Desktop printer windows can't be
cascaded at low screen resolution.,
" buttons "Cancel" default button 1 with icon 1
end try
end if
end repeat
beep 2
end tell
Thanks
Paul Abney
East Memphis Printing
_______________________________________________
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.