Re: Determining the Default Mail App
Re: Determining the Default Mail App
- Subject: Re: Determining the Default Mail App
- From: Adam Bell <email@hidden>
- Date: Mon, 6 Feb 2006 17:16:09 -0400
I'm not absolutely positive, but I think I'm running a Combo Updated system (from 3 -> 4) rather than a clean install (It was a while back) - I do recall that the combo fixed some other problems with defaults.
Question for Gnarlie: I think this is a useful thing (along with the mail client default) to post in the Code Exchange section of MacScripter. Would you object if I posted it with attribution to you (as a Gnarlodious post to
email@hidden?
Adam
On 2/6/06, Gnarlodious <
email@hidden> wrote:
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 (
--
Some minds remain open long enough for a truth to both enter and leave without processing.
_______________________________________________
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