[X4U] Re: X4U] Mailto Protocol Won't Register

John Baltutis baltwo at san.rr.com
Thu Apr 28 13:22:16 PDT 2005


On 04/28/05, Rick Gordon <rick at rickgordon.com> wrote:
>
> Thanks for the hint, Stroller. Rebuilding the Launch Services directory
>didn't fix the problem.
>
> Where is the best place to get a listing of all these arcane terminal
>commands and their usage?
>
> And I'm still accepting hints from anyone who might know how to remedy
>this problem..


AFAIK, the mailto helper info is stored in the
com.apple.internetconfig.plist, under the "Helper, mailto" data block. Use
this Terminal command to read the file and then search for the appropriate
ic data string and find out what your user setting is.

$ defaults read com.apple.internetconfig

The resultant ic data string is in hexadecimal format. For example, on my
machine, where Eudora is the default mailto application, after running the
above command and searching for mailto, yields:

"Helper\\U2022mailto" = {"ic-data" = <43534f6d 06457564 6f726100 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 >;

Converting the hex data to string, using this AppleScript (put your data
string in between quotes, ignoring all trailing zero blocks-00000000):

set hex to "43534f6d 06457564 6f726100"
set str to HexToString(hex)
on HexToString(hex)
	do shell script "echo " & hex & " | perl
-ple's/([0-9a-fA-F]{2})/chr(hex($1))/ge' "
end HexToString
get str

results in this answer: ->"CSOm Eudora" (creator code and application name)

If your's isn't the mailto helper (or Default Email Reader) you want, move
the com.apple.internetconfig.plist file to the desktop, restart, open the
Mail app->Mail->Preferences->General, reset the Default Email Reader to
your choice, and see what happens when you click on mailto links.


More information about the X4U mailing list