• 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: need explanation for trivial Safari script behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: need explanation for trivial Safari script behavior
      • From: Christopher Stone <email@hidden>
References: 
 >need explanation for trivial Safari script behavior (From: Mitchell L Model <email@hidden>)
 >Re: need explanation for trivial Safari script behavior (From: Axel Luttgens <email@hidden>)
 >Re: need explanation for trivial Safari script behavior (From: Christopher Stone <email@hidden>)
 >Re: need explanation for trivial Safari script behavior (From: Mitchell L Model <email@hidden>)
 >Re: need explanation for trivial Safari script behavior (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: need explanation for trivial Safari script behavior
  • Next by Date: Help for optimization of my script
  • Previous by thread: Re: need explanation for trivial Safari script behavior
  • Next by thread: Re: need explanation for trivial Safari script behavior
  • Index(es):
    • Date
    • Thread