Re: Determining the Default Mail App
Re: Determining the Default Mail App
- Subject: Re: Determining the Default Mail App
- From: Gnarlodious <email@hidden>
- Date: Mon, 06 Feb 2006 14:01:47 -0700
- Thread-topic: Determining the Default Mail App
Title: Re: Determining the Default Mail App
Entity kai spoke thus:
>> Kai, do you suppose you could dump your LaunchServices database and
>> post the
>> offending lines here? I'd like to see why is is being missed.
> I was just going through it myself, Gnarlie. To give you the context,
> I'll send you the entire database off-list (to keep the noise down
> for others). :-)
Thanks, kai. It looks like you are still running the 10.3.x version. Possibly you "upgraded" to 10.4 rather than installing on a clean disk like I did.
Here is a version that should work on both kinds of databases:
set defaultBrowser to do shell script "defaults read com.apple.LaunchServices | sed -n '/http;/{s/.*\\.\\(.*\\)\".*/\\1/p;}' "
if defaultBrowser is "" then set defaultBrowser to do shell script "defaults read com.apple.LaunchServices | sed '/U:http\\\\/,/LSBundleLocator/!d' | sed -n '/LSBundleIdentifier/{s/.*\\.\\(.*\\).\".*/\\1/p;}' "
defaultBrowser
Any feedback welcome.
-- Gnarlie
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden