• 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: Victor Yee <email@hidden>
  • Date: Mon, 30 Apr 2001 16:58:36 -0400

Hi, I'm not sure if I'm parsing the file correctly (seems to work with the limited amount of tests that I've run) but you could try this:


set x to ("" & (path to preferences) & "Internet Preferences")
try
set fileRef to open for access file x
repeat
read fileRef until "q"
set qNext to read fileRef for 2
if qNext is ":x" then exit repeat
end repeat
read fileRef until return
read fileRef until "H"
set browserClient to (items 5 thru 8 of (read fileRef until return)) as string
read fileRef until return
read fileRef until "H"
set mailClient to (items 5 thru 8 of (read fileRef until return)) as string
close access fileRef
on error
close access fileRef
end try
{browserClient, mailClient}


Victor


  • Prev by Date: Re: QuarkXpress Find/Change with style sheets?
  • Next by Date: FaceSpan Popups
  • Previous by thread: Re: Finding default browser with AS
  • Next by thread: Fastest Sort for text and numbers
  • Index(es):
    • Date
    • Thread