• 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: Christopher Stone <email@hidden>
  • Date: Tue, 19 Jul 2016 09:39:18 -0500

On Jul 19, 2016, at 09:16, Mitchell L Model <email@hidden> wrote:
What kind of thing is a null result? I can produce one:


Hey Mitchell,

I mean a completely silent failure with a non-result.

Run this:

set l to {}
tell application "Safari"
   repeat with i in windows
      set theDoc to i's document
      result
   end repeat
end tell

I think setting theDoc to a non-existant item should either throw an error or produce a missing value.

--
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

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>)
 >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>)
 >Re: need explanation for trivial Safari script behavior (From: Mitchell L Model <email@hidden>)

  • Prev by Date: Re: need explanation for trivial Safari script behavior
  • Next by Date: Re: need explanation for trivial Safari script behavior
  • 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