• 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: Simple Script Request
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple Script Request


  • Subject: Re: Simple Script Request
  • From: Malcolm Fitzgerald <email@hidden>
  • Date: Fri, 10 Mar 2006 13:14:10 +1100

On 10/03/2006, at 12:06 PM, Takaaki Naganoya wrote:

        tell application "Internet Explorer"
            try
                set bList to ListWindows
            on error
                quit
            end try
        end tell


ListWindows returns a list. If there are no windows it returns an empty list not an error. This works.


tell application "Internet Explorer"
if (ListWindows) is {} then OpenURL "" toWindow 0 -- open home page in new window
end tell



malcolm

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Simple Script Request (From: Takaaki Naganoya <email@hidden>)

  • Prev by Date: Re: Simple Script Request
  • Next by Date: Re: changing the order of an itunes playlist
  • Previous by thread: Re: Simple Script Request
  • Next by thread: Re: Simple Script Request
  • Index(es):
    • Date
    • Thread