Re: Hex > Text
Re: Hex > Text
- Subject: Re: Hex > Text
- From: Rob Jorgensen <email@hidden>
- Date: Wed, 17 Sep 2003 11:11:29 -0400
At 8:50 AM -0500 9/17/03, Joshua See wrote:
On Tuesday, Sep 16, 2003, at 18:21 US/Central, Rob Jorgensen wrote:
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.
You can get a resource into the data fork with the shell, and the
use the file commands from the Standard Additions to read and
manipulate it.
do shell script "cp foo.textClipping/rsrc | foo.rsrc"
Thanks! I'll look into this.
I usually don't try to return the resource fork through the shell
script command because the results can be unpredictable when dealing
with binary data.
Thanks for the heads up.
Also, if you are willing to require user to have the developer
tools, see the manual pages regarding DeRez.
I need to explore all options. While it's nice to release scripts
that require no additional software, we all know that it isn't always
possible. I'll shoot for the lowest common denominators. Thanks to
everyone who has contributed to this thread, I have plenty of options
to explore. :-)
-- Rob
_______________________________________________
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.