Re: Swap foreground and background windows
Re: Swap foreground and background windows
- Subject: Re: Swap foreground and background windows
- From: Yvan KOENIG <email@hidden>
- Date: Sun, 24 May 2009 21:05:28 +0200
I would use this kind of code:
(* to put window 1 at top, window 2 at middle, window 3 at background *)
my click3windows(7, 8, 9)
(* to put window 1 at top, window 3 at middle, window 2 at background *)
my click3windows(7, 9, 8)
(* to put window 2 at top, window 3 at middle, window 1 at background *)
my click3windows(8, 9, 7)
on click3windows(wF, wM, wB)
tell application "TextEdit"
activate
tell application "System Events" to tell process "TextEdit" to tell
menu bar 1 to tell menu bar item 6 to tell menu 1
click menu item wB
click menu item wM
click menu item wF
end tell -- System Events
end tell -- TextEdit
end click3windows
Yvan KOENIG (from FRANCE dimanche 24 mai 2009 21:05:02)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden