• 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: Finding default browser with AS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding default browser with AS


  • Subject: Re: Finding default browser with AS
  • From: Jolly Roger <email@hidden>
  • Date: Mon, 30 Apr 2001 10:44:26 -0500
  • Replyto: email@hidden

on 4/30/01 10:15 AM, Andy Wylie (email@hidden) wrote:

>>> _____________________________
>>> property browser : ""
>>>
>>> if browser is "" then getBrowser()
>>>
>>> on getBrowser()
>>> open location ""
>>> delay 1
>>> set browser to name of (info for (path to frontmost application))
>>> tell application browser to quit
>>> return browser
>>> end getBrowser
>>
>> Did you try running this script? It gives me an error on the line:
>>
>> open location ""
>>
>> Anyway, it seems to me that will only work if a browser is already open.
>>
> yep compiles in Smile and runs ok AS1.3.7, what's "it" that gives you an
> error ?

"An error of type -673 has occurred." This is in Mac OS X 10.0.1. You
don't have a "tell application" in the script, and I suspect that is why I
get the error. To what application does "open location" belong?

As to your second question - that's a question you will have to ask my
mother, and a select few others who have influenced me throughout my
lifetime. ;)

JR


  • Prev by Date: QuarkXpress Find/Change with style sheets?
  • Next by Date: Re: Finding default browser with AS
  • Previous by thread: Re: Finding default browser with AS
  • Next by thread: Re: Finding default browser with AS
  • Index(es):
    • Date
    • Thread