• 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
Returning default browser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Returning default browser


  • Subject: Returning default browser
  • From: Jay Louvion <email@hidden>
  • Date: Sat, 13 Jan 2007 19:42:43 +0100
  • Thread-topic: Returning default browser

Title: Returning default browser

Browsing the archive, I found this piece of code

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}

That doesn’t return anything in my case. Is there a simpler way of returning the default web browser that open location and check the frontmost app’s name (that just so clumsy) ?

Best,

j.

Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva

T+4122 840 3272
F+4122 840 3271

skypeme:
jaylouvion

www.studiocasagrande.com


P Please consider the environment before printing this email.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Returning default pdf reader (was: Returning default browser)
      • From: Jay Louvion <email@hidden>
  • Prev by Date: Re: Getting info from file without opening it
  • Next by Date: [ANN] January Boston AppleScript User Group Meeting
  • Previous by thread: Re: Getting info from file without opening it
  • Next by thread: Returning default pdf reader (was: Returning default browser)
  • Index(es):
    • Date
    • Thread