• 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: Move multiple windows from 1 application to different spaces?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Move multiple windows from 1 application to different spaces?


  • Subject: Re: Move multiple windows from 1 application to different spaces?
  • From: Steve Thompson <email@hidden>
  • Date: Wed, 27 Oct 2010 11:27:25 +0100


On 27 Oct 2010, at 08:34, Greg Evans wrote:

if theWindow = "NameOfCollegeClass" then
move theWindow to Space 2
end if

This doesn't do what you're asking - I've tried to do it in the past and given up! However, it gets close - it moves the entire application to another space, not just one window.

If you do figure out how to move one window, please let me know!

set app_ident to bundle identifier of (info for ((POSIX path of (path to applications folder) as string) & "Safari.app"))
set app_ident to "|" & app_ident & "|"
tell application "System Events"
if the name of window 1 of process "Safari" is "NameOfCollegeClass" then
tell spaces preferences of expose preferences
set app_layout to application bindings
set app_layout to app_layout & {app_ident:2} -- move Safari to space 2
set application bindings to app_layout
end tell
end if
end tell

Steve
 _______________________________________________
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: Move multiple windows from 1 application to different spaces?
      • From: Brian Christmas <email@hidden>
References: 
 >Move multiple windows from 1 application to different spaces? (From: Greg Evans <email@hidden>)

  • Prev by Date: Re: Move multiple windows from 1 application to different spaces?
  • Next by Date: Re: Move multiple windows from 1 application to different spaces?
  • Previous by thread: Re: Move multiple windows from 1 application to different spaces?
  • Next by thread: Re: Move multiple windows from 1 application to different spaces?
  • Index(es):
    • Date
    • Thread