Re: Sine of the times: Much better window shaker
Re: Sine of the times: Much better window shaker
- Subject: Re: Sine of the times: Much better window shaker
- From: Paul Skinner <email@hidden>
- Date: Fri, 21 Mar 2003 17:11:17 -0500
My original solution from this thread did a circle.
tell application "Finder"
activate
try
set frontWindow to window 1
set {centerx, centery} to position of frontWindow
set steps to 16
set radius to 25
set angle to pi / steps
set phi to 0
repeat steps * 2 times
set phi to phi + angle
set x to centerx + radius * (cos (phi)) - radius
set y to centery + radius * (sin (phi))
tell application "Finder"
set position of window 1 to {x, y}
end tell
end repeat
set position of window 1 to {centerx, centery}
end try
end tell
Paul Skinner
On Friday, March 21, 2003, at 04:34 PM, John Delacour wrote:
At 10:19 pm +0100 21/3/03, Emmanuel wrote:
I can't resist. Here are the best settings for me:
More like a Rosalie than a DS !
Has anyone done the circle yet? I got half way and then
short-circuited, as I usally do with this sort of thing.
_______________________________________________
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.