Re: need explanation for trivial Safari script behavior
Re: need explanation for trivial Safari script behavior
- Subject: Re: need explanation for trivial Safari script behavior
- From: Mitchell L Model <email@hidden>
- Date: Mon, 18 Jul 2016 14:43:19 -0400
Good to know — never occurred to me to look for the document of a browser window. Browser windows contain tabs; tabs have a name, URL, and text. But the definition of the document of a window in Safari's dictionary does say "The document whose contents are being displayed in the window." So that would mean that document = current tab for windows with tabs. (Windows without tabs? An open Preferences window is one such.)On Jul 18, 2016, at 9:45 AM, Christopher Stone < email@hidden> wrote:
set winList to windows where its document is not missing value
Interestingly — to me anyway — this does NOT work:
repeat with theWindow in the windows if the document of theWindow is missing value then …
For windows without a document I get the error "No result was returned from some part of this _expression_", with "missing value" selected.
|
_______________________________________________
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