• 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: Jan Pieter Kunst <email@hidden>
  • Date: Mon, 30 Apr 2001 15:22:52 +0200

Jan Pieter Kunst (email@hidden) schreef op 30-04-2001 13:51 :

>> property gBrowserCreator : ""
>>
>> on run
>> if gBrowserCreator = "" then my ResolveBrowser()
>> end run
>>
>> on ResolveBrowser()
>> tell application "File Exchange"
>> set browser to creator type of (extension mapping "html")
>> quit
>> end tell
>> return browser
>> end ResolveBrowser
>
>
> Yes, but this doesn't keep the value of 'browser' after the script quits,
> unless I'm mistaken? Or am I missing a step where the script saves itself
> with "property gBrowserCreator : browser"?
>
> Thanks,
> Newbie JP


After some quick testing, I think I got it now: in the above code snippet,
"browser" should be changed to "gBrowserCreator" in the "on
ResolveBrowser()" handle.

Then "gBrowserCreator" retains the value returned by "on ResolveBrowser()"
handle until the script is recompiled.


Thanks all,
JP


References: 
 >Re: Finding default browser with AS (From: Jan Pieter Kunst <email@hidden>)

  • Prev by Date: Re: Finding default browser with AS
  • 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