Re: AppleScript-Users Digest, Vol 6, Issue 324
Re: AppleScript-Users Digest, Vol 6, Issue 324
- Subject: Re: AppleScript-Users Digest, Vol 6, Issue 324
- From: Chris Page <email@hidden>
- Date: Tue, 21 Jul 2009 05:28:26 -0700
On Jul 16, 2009, at 11:37 AM, Cezary Okupski wrote: if (count (windows of application "Safari" whose visible is true)) is greater than 0 then
You can simplify this to:
if exists (windows of application "Safari" whose visible is true) then
This also only sends one event instead of two.
-- Chris Page - AppleScripter
The other, other AppleScript 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