Just the resource types & IDs:
/Developer/Tools/DeRez /path/to/file | grep data
(Those two require the Developer Tools to be installed.)
On an HFS/HFS+ disk, you can refer to the resource fork by adding
"/..namedfork/rsrc" to the end of the path:
To see the file size, etc.:
ls -l /path/to/file/..namedfork/rsrc
To see the whole fork in hex:
hexdump -C /path/to/file/..namedfork/rsrc
Cheers,
--Dave
On Oct 27, 2005, at 4:21 PM, Jerry Krinock wrote:
on 05/10/27 14:34, John Stiles at email@hidden wrote:
If you examine the Jaguar-generated webloc file, does it actually
have a resource fork?
Note here that, as you asked, I am talking about a Safari/Jaguar-
generated
.webloc file, not the Safari/Tiger-generated one I did my testing
with.
If I copy this file over the network to my Tiger powerbook, it has
0 data
bytes and 0 resource bytes and will not open Safari. I cannot
explain this
since I am using drag-and-drop from Finder windows which should, I
thought,
preserve resource forks.
So, I had to install HexEdit and Resorcerer on the Jaguar box.
That's why
it took me so long to reply.
Here is what is in the .webloc files:
Safari/Jaguar-generated .webloc file:
Data fork:
0 bytes
Resource fork contains shows 3 resources:
'drag', type 128, contains the names of the other two resources
'TEXT', type 256, contains the URL I am looking for
'url ', type 256, also contains the URL I am looking for.
Safari/Tiger-generated .webloc file:
Data fork:
0 bytes
Resource fork contains shows 4 resources:
'drag', type 128, contains the names of the other three resources
'TEXT', type 256, contains the URL I am looking for
'url ', type 256, also contains the URL I am looking for.
'urln', type 256, contains 5 bytes: 41 70 70 6C 65
I hope this raises more answers than questions. Thanks!
Jerry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden