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: Christopher Stone <email@hidden>
- Date: Mon, 18 Jul 2016 08:45:07 -0500
On Jul 18, 2016, at 07:54, Mitchell L Model <email@hidden> wrote:
I tend to use exception handling instead of filtering because (a) it handles screwball cases I didn't know about (though arguably this is bad because I should discover those cases — but if you want to distribute your code, exception handling is more reliable) and (b) my programming background leads me to use exception handling as another way to filter.
I prefer a lack of complexity whenever reasonably possible.
This code has worked reliably for me for more than a decade now. set winList to windows where its document is not missing value
|
_______________________________________________
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