Example of script that moves window...
Example of script that moves window...
- Subject: Example of script that moves window...
- From: David Crowe <email@hidden>
- Date: Thu, 17 Oct 2002 20:49:34 -0600
The following script moves a window a small distance to the right. It
can easily be modified to center a window instead. I use this within
QuicKeys, but other methods are possible. Note that you will have to
use something like "set {minX, minY, MaxX, MaxY} to the bounds of
item 1 of (screen list)" to get the bounds of the monitor to do the
maths to center the window.
- David Crowe
property DCroweUtilities : (load script file ":System
Folder:Scripts:DCroweUtilities")
tell DCroweUtilities
set TheBounds to GetFrontmostWindowBounds()
set theLeft of TheBounds to (theLeft of TheBounds) + 50
set theRight of TheBounds to (theRight of TheBounds) + 50
SetFrontmostWindowBounds(TheBounds)
end tell
_______________________________________________
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.