Returning default browser
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