• 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: windows of app process & spaces
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: windows of app process & spaces


  • Subject: Re: windows of app process & spaces
  • From: Deivy Petrescu <email@hidden>
  • Date: Mon, 27 Jun 2016 17:04:06 -0400

> On Jun 27, 2016, at 16:32 , Mitchell L Model <email@hidden> wrote:
>
>
>> On Jun 27, 2016, at 1:05 PM, Deivy Petrescu <email@hidden> wrote:
>>
>> tell application "System Events”
>> set frontmost of  application process “TextEdit” to true
>> get the windows of application process “TextEdit"
>>
>
> Sorry, don’t know what you are talking about.
>
> Space 1 has:
> 	SD, assigned to the space.
> 	2 windows from TextEdit (1 minimized, 1 not)
> Space 2 has:
> 	1 window from TextEdit
>
> TextEdit is assigned to Space 2.
>
> tell application "System Events"
> 	tell application process "TextEdit"
> 		set frontmost to true
> 		the windows
> 	end tell
> end tell
>
> produces 2 windows, not 3.
>
>

I see!
I didn’t understand you had TE windows in 2 spaces.
What you are getting is what you get from the OS (finder, if you will).

Try the following, you have TE open in 2 spaces, in one of them SD is also opened
In the space where SD and TE are opened, in the Finder change the front app. You will see the only the window TE in the same space.
Now, in this same space close the TE window leaving only the windows in other space opened.
If SD is you front app, change to TE, you will be taken to the space where the windows are open.
If that is what the OS does, AppleScript can not do better than that!




Deivy Petrescu
email@hidden




 _______________________________________________
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: windows of app process & spaces
      • From: Phil Stokes <email@hidden>
References: 
 >windows of app process & spaces (From: Mitchell L Model <email@hidden>)
 >Re: windows of app process & spaces (From: Deivy Petrescu <email@hidden>)
 >Re: windows of app process & spaces (From: Mitchell L Model <email@hidden>)

  • Prev by Date: Re: windows of app process & spaces
  • Next by Date: Re: 10.11 additions to NSAppleEventDescriptor & Mac App Store
  • Previous by thread: Re: windows of app process & spaces
  • Next by thread: Re: windows of app process & spaces
  • Index(es):
    • Date
    • Thread