Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script to read resource forks and add extension to file?




Am 15.10.2004 um 18:30 schrieb Ball, Dan:

Just wondering if anyone has a script or knows of a program that will go thru and read the resource forks of files and add the specific extension to the file?

So, you might want to explain us what resource forks have to do with the file extension. While the resouce fork is just part of the contents, the extension is some (primitve) sort of meta data.



That said, perhaps you want the "Type" and "Creator" meta data/Finder info mapped to a file extension. Obviously, you need some mapping table, then. I'm not aware of one and surely, there doesn't exist a universal one.


If you have Developer Tools installed, there's /Developer/Tools/SetFile and /Developer/Tools/GetFileinfo to get you started. On Classic Mac OS, there were some System Extensions to do this mapping but to best of my knowledge, this part of the OS didn't make it over to Mac OS X.


Moving away from AFP to SMB...

... doesn't prevent you from using/storing Finder info and resource forks. They are just stored some other way.


... won't work correctly unless you put the extension on the ends of the file names.

This might be the case for quite some combinations of documents and applications but isn't always the case. Some apps insist on Finder info, others insist on a resource fork.



<winmail.dat>

*sigh* Apple should reconsider wether they allow attachments on their lists.




HTH,
Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden
References: 
 >Script to read resource forks and add extension to file? (From: "Ball, Dan" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.