• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: get default browser?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: get default browser? (From: Reinhold Penner <email@hidden>)

  • Prev by Date: Re: OT: Eskimo words for snow (Re: what's a "froplet"?)
  • Next by Date: Re: Misc Eudora questions
  • Previous by thread: Re: get default browser?
  • Next by thread: Re: get default browser?
  • Index(es):
    • Date
    • Thread