• 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: Quark67 <email@hidden>
  • Date: Mon, 25 May 2009 22:56:20 +0200


Le 25 mai 09 à 20:10, Luther Fuller a écrit :


tell application "TextEdit"
activate
set winList to (id of every window) as list
set newOrder to (rest of winList) & {item 1 of winList}

repeat with i from 1 to (count items of newOrder)
set winID to (item i of newOrder)
set index of window id winID to i
end repeat

set visible of window id (item 1 of newOrder) to false
set visible of window id (item 1 of newOrder) to true
end tell

Now it works! (But, will it help the current problem?)

Thanks, exactly what I would :) Very good :)
 _______________________________________________
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

References: 
 >Swap foreground and background windows (From: Quark67 <email@hidden>)
 >Re: Swap foreground and background windows (From: Luther Fuller <email@hidden>)

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