Re: Reading resource forks
Re: Reading resource forks
- Subject: Re: Reading resource forks
- From: Graff <email@hidden>
- Date: Sat, 06 Dec 2003 16:48:59 -0500
As I noted in a follow-up, it does not seem to work correctly with the
colon-style paths, at least in AppleScript. It does return data
without an error but the data is the same whether or not you do
":..namedfork:rsrc" or ":..namedfork:data". However, doing it as a
shell script with the POSIX form "/..namedfork/rsrc" works just fine.
And, yeah, it's just the raw data. I figured he might have a way of
parsing it out. I know it can be done, but I don't know the format
exactly and couldn't be bothered to figure it out! :-)
- Ken
On Dec 6, 2003, at 3:12 AM, Christopher Nebel wrote:
This will work -- at least, the POSIX-style version does in the shell,
I've never tried the HFS version -- but realize that you'll be getting
the raw bytes of the entire resource fork, which you'll then have to
interpret yourself, including figuring out where the FOND resource
begins and ends. This will be non-trivial.
--Chris Nebel
AppleScript Engineering
On Dec 5, 2003, at 3:52 PM, Graff wrote:
Well technically under HFS+ you can access a resource fork for a file
with the name "filename" by using:
filename/..namedfork/rsrc
the data fork would be at:
filename/..namedfork/data
I believe can also use the classic "Finder" path format:
filename:..namedfork:rsrc
_______________________________________________
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.