• 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: Swap foreground and background windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Swap foreground and background windows
      • From: Quark67 <email@hidden>
References: 
 >Swap foreground and background windows (From: Quark67 <email@hidden>)

  • Prev by Date: Swap foreground and background windows
  • Next by Date: Re: Swap foreground and background windows
  • Previous by thread: Swap foreground and background windows
  • Next by thread: Re: Swap foreground and background windows
  • Index(es):
    • Date
    • Thread