Re: windows of app process & spaces
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 trueget the windows of application process “TextEdit"
|
_______________________________________________
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