• 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: window shaker, finishing in the Dock?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: window shaker, finishing in the Dock?


  • Subject: Re: window shaker, finishing in the Dock?
  • From: Philippe GRUCHET <email@hidden>
  • Date: Sat, 22 Mar 2003 00:59:30 +0100

David Crowe wrote:
on NodWindow(w, nsteps)
--The window will shake up and down three times.
tell application "Finder"
activate
set {xPrime, yPrime} to position of w
repeat with i from 1 to nsteps
set position of window 1 to {xPrime, yPrime + (50 * nsteps) / (nsteps + i) * (sin (i * 5 * pi / (nsteps)))}
end repeat
set position of window 1 to {xPrime, yPrime}
end tell
end NodWindow

From: Emmanuel <email@hidden>
Quite nice!
And you get a still smoother feel if you make the damping term more natural, i.e. exponential:
... yPrime + 50 * (exp (-5 * i / nSteps)) * (sin (i ...


And how can you simulate the Shift-minimize window shortcut?
It would be quite nicer to end the loop by sending the window slowly in the Dock...


Kind regards,
Philippe Gruchet/SVM Mac
_______________________________________________
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: Re: Sine of the times: Much better window shaker
  • Next by Date: Re: Newbie Help
  • Previous by thread: Fwd: applescript-users digest, Vol 3 #1487 - 15 msgs
  • Next by thread: Solution to the -916 SOAP error?
  • Index(es):
    • Date
    • Thread