• 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 13:05:10 -0400


On Jun 27, 2016, at 11:36 AM, Mitchell L Model <email@hidden> wrote:

I just stumbled on something very disconcerting. It doesn’t make any sense to me because I’ve worked with the windows of application processes a lot, and I’ve never noticed this before, nor seen any mention of it anywhere. With Script Editor (or Script Debugger) assigned to a specific space, the scriptlet
tell application "System Events" to get the windows of application process "TextEdit"
only sees windows that are in the same as the window in which it is run. (That is, the issue is the space the script window has been moved to not the space to which Script Editor/Debugger has been assigned.)

I would appreciate confirmation and, if possible, an explanation of this. If this is confirmed, was it always this way? (in particular before 10.9?) Is there a way around it so a script can consider all windows of a process?


Mitchell that has been this way that the whole OS has been working.
The workaround is to bring TextEdit to the front then work with it.

tell application "System Events”
set frontmost of  application process “TextEdit” to true
get the windows of application process “TextEdit"




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: Mitchell L Model <email@hidden>
References: 
 >windows of app process & spaces (From: Mitchell L Model <email@hidden>)

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