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?




On Oct 15, 2004, at 9:30 AM, Ball, Dan wrote:

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?

Moving away from AFP to SMB......when shutting off appletalk and sharing the items out over SMB the resource forks get lost and won't work correctly unless you put the extension on the ends of the file names. Would be nice to have a script or program that could go down thru and look at the resource forks and add the file extension to the file.

Hmmm... You know if you properly set up SMB, the OS will split the forked file into 2 separate files, for example, for file "foo" you'd get:


foo
._foo

On the OS. A Mac client to this SMB share would pick up this info, and could properly interpret the file type (e.g. a Word file). Only problem is is a "genius" admin on the Windows side wonders what all "these crap ._ files are" and deletes them, then you're in for some hurt.

You could manually change the names, but it shouldn't be strictly necessary... OS X can handle it.

Cheers,

-Bill

_______________________________________________
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.