• 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: Applescript URL protocol (Was applescript & HTML)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript URL protocol (Was applescript & HTML)


  • Subject: Re: Applescript URL protocol (Was applescript & HTML)
  • From: Walter Ian Kaye <email@hidden>
  • Date: Fri, 26 Mar 2004 02:23:24 -0800

At 10:54a +0100 03/26/2004, Brennan didst inscribe upon an electronic papyrus:

Back to the point; I was recently looking at using 'do shell script' to
call the built in UNIX base64 encoder (part of the OpenSSL command).

It works well, but AFAICT relies on the input being a file. :(

openssl base64 -in file.bin -out file.b64

Of course we can write the string temporarily to (path to "flnt") but that
seems kind of overkill.

Can anyone fathom the man pages ('man enc') to the point where they can
pass a string (with high byte chars, or perhaps unicode) directly to this
command for encoding as 7bit text?

Is there another shell command for doing this?

Well, you know, Base64 encoding/decoding is not all that difficult. I wrote some encoding/decoding routines in ProTERM's DIRC language, and it would be pretty easy to port to Perl. Of course there are already Base64 modules for Perl. There might even be some osax command, or it could be done in vanilla AppleScript.

Uhh... what was the question again? :)


-boo
_______________________________________________
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: Applescript URL protocol (Was applescript & HTML) (From: Brennan <email@hidden>)

  • Prev by Date: Re: Applescript URL protocol (Was applescript & HTML)
  • Next by Date: Re: Applescript URL protocol (Was applescript & HTML)
  • Previous by thread: Re: Applescript URL protocol (Was applescript & HTML)
  • Next by thread: Re: Applescript URL protocol (Was applescript & HTML)
  • Index(es):
    • Date
    • Thread