Re: get default browser?
Re: get default browser?
- Subject: Re: get default browser?
- From: Roger_Jolly <email@hidden>
- Date: Mon, 05 Aug 2002 15:40:01 +0200
Hi Reinhold,
I could be missing the point, but if you already got Hex2String in perl why
not use something like this for String2Hex?
do shell script "echo \"Yes, I just love the shell!\" | perl -ne
's|(.)|printf \"%lx\", ord($1)|eg;'"
Also one line, of course.
Roger
on 04-08-2002 00:20, Reinhold Penner at email@hidden wrote:
>
Emmanuel,
>
>
I would love to get the script. Do you by any chance have the reverse
>
code as well (i.e. StringToHex)? The HexToString bit is actually not
>
such a huge problem (watch out for line breaks, this is all one line):
>
>
do shell script "echo
>
'446F6E277420796F75206A757374206C6F766520746865207368656C6C3F' | perl
>
-pe 's|([a-fA-F0-9]{2})|chr(hex($1))|eg'"
>
>
-Reinhold
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.