• 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: Emmanuel <email@hidden>
  • Date: Fri, 21 Mar 2003 22:19:18 +0100

I can't resist. Here are the best settings for me:

----------------------------
on DCPSNodWindow(w, nSteps) -- David Crowe, Paul Skinner et al.
set theDamping to 5
set theAmplitude to 50
set thePeriods to 10
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 + theAmplitude * (exp (-theDamping * i / nSteps)) * (sin (i * thePeriods * pi / (nSteps)))}
end repeat
set position of window 1 to {xPrime, yPrime}
end tell
end DCPSNodWindow

tell application "Finder" to activate
tell application "Finder" to set w to window 1
DCPSNodWindow(w, 20) -- doiiiing!
----------------------------

Emmanuel
_______________________________________________
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.

  • Follow-Ups:
    • Re: Sine of the times: Much better window shaker
      • From: Paul Skinner <email@hidden>
    • Re: Sine of the times: Much better window shaker
      • From: LE STANG Jean-Baptiste <email@hidden>
    • Re: Sine of the times: Much better window shaker
      • From: John Delacour <email@hidden>
References: 
 >Sine of the times: Much better window shaker (From: David Crowe <email@hidden>)

  • Prev by Date: AppleScript and Excel VBA returning different values for particular column
  • Next by Date: Re: Sine of the times: Much better window shaker
  • 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