• 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: Sine of the times: Much better window shaker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Sine of the times: Much better window shaker (From: John Delacour <email@hidden>)

  • Prev by Date: What are the elements listed in a dictionary?
  • Next by Date: Fwd: applescript-users digest, Vol 3 #1487 - 15 msgs
  • Previous by thread: Re: Sine of the times: Much better window shaker
  • Next by thread: Re: Sine of the times: Much better window shaker
  • Index(es):
    • Date
    • Thread