Re: Move multiple windows from 1 application to different spaces?
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