Re: window shaker, finishing in the Dock?
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.