• 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: AppleScript-Users Digest, Vol 6, Issue 324
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: AppleScript-Users Digest, Vol 6, Issue 324 (From: Cezary Okupski <email@hidden>)

  • Prev by Date: Re: Accessing Localized File Menu String
  • Next by Date: Re: MS word scripting (Stan Cleveland)
  • Previous by thread: Re: AppleScript-Users Digest, Vol 6, Issue 324
  • Next by thread: removing a photo from "events album" removes the whole album!
  • Index(es):
    • Date
    • Thread