Re: Hex > Text
Re: Hex > Text
- Subject: Re: Hex > Text
- From: Walter Ian Kaye <email@hidden>
- Date: Tue, 16 Sep 2003 21:55:56 -0700
At 11:15p -0400 09/16/2003, Rob Jorgensen didst inscribe upon an
electronic papyrus:
At 5:21 PM -0700 9/16/03, Walter Ian Kaye wrote:
At 07:21p -0400 09/16/2003, Rob Jorgensen didst inscribe upon an
electronic papyrus:
I have, in hex, a "drag" resource from a clipping file. Is it
possible to convert the hex to text via the shell or vanilla
AppleScript? If so, sample code would be greatly appreciated as my
search has yielded nothing useful.
To extract from a resource, you need something beyond vanilla AS.
There are a couple of ways to go. You could extract the raw
resource fork via a shell trick, but you'd have to parse the
resource map before parsing the data buried within. Or you could
use the Extra Suites app which has resource i/o commands.
I've already used Extra Suites to read the resource and convert it
to text but I was hoping for a vanilla/shell alternative. Thanks for
trying! :-)
Well, there is code for parsing the resource map, but it's in a
language that doesn't yet exist on OS X and would have to be ported
to something like Perl.
What languages do you know? :) I could ask the author to port it, but
I don't know if he has the time. ::looking at code:: Dang, lots of
math and boolean transforms an' stuff (but nothing that couldn't be
done in perl).
-Walter
_______________________________________________
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.