• 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 16:34:19 +0200

David Blache (email@hidden) schreef op 30-04-2001 15:48 :

> property gBrowserCreator : ""
>
> on run
> if gBrowserCreator = "" then set gBrowserCreator to ResolveBrowser()
> display dialog "The browser creator code is: " & gBrowserCreator
> end run
>
> on quit
> return true
> end quit
>
> on ResolveBrowser()
> tell application "File Exchange"
> set browser to creator type of (extension mapping "html")
> quit
> end tell
> return browser
> end ResolveBrowser


This works. As an aside, since I like to understand what I am doing, can you
explain the 'philosophy' behind this handler?

on quit
return true
end quit

What exactly is being returned as 'true'? 'True' is a property of something,
right? So what is it that is 'true' here?

Thanks,
JP


  • Follow-Ups:
    • Re: Finding default browser with AS
      • From: Jolly Roger <email@hidden>
References: 
 >Re: Finding default browser with AS (From: David Blache <email@hidden>)

  • Prev by Date: Re: Finding default browser with AS
  • Next by Date: Fastest Sort for text and numbers
  • Previous by thread: Re: Finding default browser with AS
  • Next by thread: Re: Finding default browser with AS
  • Index(es):
    • Date
    • Thread