Re: Safari on macOS 10.12.4 – Window Issues
Re: Safari on macOS 10.12.4 – Window Issues
- Subject: Re: Safari on macOS 10.12.4 – Window Issues
- From: Thomas Floeren <email@hidden>
- Date: Mon, 24 Apr 2017 12:19:59 +0200
> On 23. Apr 2017, at 05:16, Christopher Stone <email@hidden> wrote:
>
> Hey Folks,
>
> I finally update to macOS 10.12.4 and am having to fix a variety of library handlers and scripts – in particular do-JavaScript results where AppleScript automatically converted an array to an AppleScript list (until 10.12.4 that is). I've worked around this by joining the array with a linefeed and returning the string.
>
> Safari 10.1 (12603.1.30.0.34)
>
> I see the following no longer pulls up invisible windows (and that's not a bad thing):
>
> tell application "Safari"
> set winList to windows
> end tell
>
> But. It doesn't see the Prefs window either, and that's just lame.
>
> Open the prefs window, and run this:
>
> tell application "Safari"
> set frontWinName to name of front window
> end tell
>
> And you get the name of the front document window.
>
> tell application "System Events"
> tell application process "Safari"
> set winpropList to properties of windows
> end tell
> end tell
>
> This will find all the windows including a no-name one with a subrole of "AXUnknown"...
>
> Would someone take a minute and confirm these for me?
FWIW: Your last snippet only finds the windows from the current Space, including an open prefs window. (Unfortunately I don’t know how to produce a no-name window.)
--
Tom
>
> TIA.
>
> --
> Best Regards,
> Chris
>
> _______________________________________________
> 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
_______________________________________________
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