Delete Resource Fork.

Hello AppleScript Gurus,
I'm wondering if it's possible to tell finder or another application to delete or remove a resource fork? I've got a lot of file that have custom & preview icons and I don't need or want them to have them.
Thanks in advance,
Maximilian

Use the ditto command in the Terminal, which is in the /Applications/Utilities/ folder, to create a copy of those files without the resource fork, and throw the originals away.
(26858)

Similar Messages

  • Deleting resource fork

    An age-old headache for some users. QuickImage and/or Grim Ripper used to make it possible to delete the resource fork from files. In SnowLeopard, neither works.
    Why would anyone want to delete the resource fork? The cut down on file sizes. Imagine if you have a number of JPGs available on the web to view. Remioving their resource forks custs down on server storage space and speed the loading of the images.
    Seems like a no-brainer to me — many people would benefit from such a utility. Why does such a thing apparently not exist these days?

    Thomas, thanks for responding but yes, I kept the detail down to avoid writing a longer question.
    JPGs can and do have resource forks — custom icons for example. (If, of course, your JPG generator is set up to create them.) I use GraphicConverter and Photoshop make my JPGs and, by golly, they both offer an option to make a custom icon, which I take advantage of. (Don't ask why. More waffle.)
    I then parcel up twenty JPGs into a Zip archive, and upload it to the main web site I run <http://hamilton-archives.com>. Members visit the site, admire the thumbnails and pop-ups and then, if they have paid a small additional cost, they can download the Zip.
    Custom icons on my JPGs can and often do DOUBLE the size of that Zip.

  • Resource fork et al deletion with usb stick drives

    I know there are lots of discussions about 'extra files' not used by other operating systems (such as resource forks and .Trashes and .DS_Stores and spotlight files and and whatever) so I hope this doesn't bore people but....
    I use a usb stick a lot, mostly to share data cross-platform. I want to get rid of the unusable files to make my colleagues' life easier and unclog my life. I know I prevent some of them over network connections, but that is only some of them, and that is only over network connections.
    I can't disable the creation of these using the method that applies to network connections (Article: HT1629).
    Can I just go to terminal and go:
    cd /Volumes/USBStick
    rm -fr .*
    This is seeming to work. I get an error about not being able to delete the . file and the .. file, but it happily goes ahead and gets rid of the rest.
    Seeing that it appears to work, can I dispense with paying for BlueHarvest (at least for my situation)? Or have I inadvertently destroyed essential data and should expect imminent falling of the sky upon my head?
    thanks all,
    diddles.

    Definitely a yawn here. As your wonderful machine is the source of this important data that's transferred over to that 'other' platform, convince your colleague that his life will be easier still if he buys a Mac. Thereafter, the invisible files will be just that.
    An expensive solution, but I think a good one.

  • Is there a resource fork with iTunes music files?

    I want to put a few iTunes music files on an SD card and plug it into my Panasonic TV for sort of instant access.
    It worked and sounded OK, except I get two files on the SD card for every file in iTunes (the second one isn't recognized).
    I seem to remember this was an issue with JPG image files and people used GraphicsConverter to remove the resource fork.
    Is that the problem I'm having - the resource fork showing up as an unreadable file?
    Is there a way to remove it? GC won't.
    Or is it something else?
    Thanks, HNick

    http://www.limit-point.com/Utilities/DeleteFork.html
    http://www.gingerbeardman.com/services/ - fork deletion utilities (OSX 10.6+)
    http://en.wikipedia.org/wiki/Resource_fork#The_Macintosh_file_system
    http://zeroonetwenty.com/blueharvest/

  • "Open With"- "Change All" corrupts your file (Resource forks, extended attributes, creation date)

    I finally know why some of my files get corrupted.
    If you use the following method to assign one kind of file to always open with the same application;
    http://docs.info.apple.com/article.html?path=Mac/10.6/en/8387.html
    (File -> Get Info -> Open With -> Change All)
    an extended attribute will be added to your file.
    You can examine that by typing "ls -l" in Terminal. If you see an @-sign after permissions than you have an extended attribute in that file.
    To see what it contains, type "xattr -l filname.jpg" in Terminal.
    Besides that is adds an extended attribute (which can be deleted with the "xattr --help" command) the modification date of the selected file will be changed.
    I think this is irritating because I wan't to keep my master photos with the same modification date as creation date.
    What else does it effect besides the modification date and to add extended attributes? Does my metadata get intact?
    (If you further want to make a backup copy on for example a FAT32 filesystem than your got a new problem. FAT32 doesn't support resource forks, so besides filename.jpg you will have an additional ._filename.jpg of 4kb)

    Doesn't sound like there is any corruption going on to me. It may change the date modified, but that should be expected since you modified the file.

  • How do I use Automator to duplicate a folder with graphics on my desktop and erase their Resource forks?

    How do I use Automator to duplicate a folder with graphics on my desktop and erase their Resource forks?
    I do not use command line and tried to use ZapResourceForksAMAub_1.2 which I downloadedand instaled the Zap Resource Forks.action. Next I tried to use their sample copy-zap-rsrc.workflow in Snow Leopardon my Mac Pro. The 3 different steps are displayed in Automator but there is no place to put in which folder (on my deskto) to copy, and remove the resource forks from the graphic files.
    Can sombody please step me through this please please.
                                                                                          W.W.

    Unfortunately, Back to My Mac only works across computers using the same iCloud account.

  • Can't open appleworks file / resource fork issue

    Hi,
    I've just readt the post "Can't open old appleworks/clarisworks files".
    My problem was that I got a "I/O error" when trying to open some appleworks files with appleworks 6.2.9.
    I realize that I copy those file from my previous disk to a PC formated CD. Hence, some resource fork files should miss.
    BUT, I don't have anymore the original files since I re-install my Mac...
    If there a way to recover my files despite of this resource fork issue ? Is it possible to create again the resource fork file ?
    Christophe

    It's not a resource fork problem. If it were, adding the .cwk extension to the file name would likely fix it. AppleWorks 6.2.9 (the current version) can't open all ClarisWorks 4 or earlier files. It gives an I/O error. There doesn't appear to be a way to predict which files will cause problems. I've had it happen & not happen with all AppleWorks file types. These files can be opened by any other version of AppleWorks 6, including the OS 8/9 component 6.2.8. If you have the retail version of AppleWorks 6.2.9 or your “consumer” Mac came with an earlier version of AppleWorks 6 that you have updated to 6.2.9 & have Classic installed, you can "Force" AppleWorks 6 to open in Classic to open the files, save them as AW 6 files & then open them in the OS X version. Also, if you have Classic installed & have AppleWorks 5, this can be used to open the ClarisWorks files & save them as AppleWorks 5 which AppleWorks 6.2.9 can open.

  • Copy and paste resources in resource fork?

    Hi,
    is there some way to have Applescript copy a resource from a resource fork in one file and paste it into another file?
    Cheers!
    Joe

    Hello
    You might try Satimage.osax, a free scripting additions made and distributed by Satimage-software, France. It includes commands to get and put resource data.
    Satimage osax
    http://www.satimage.fr/software/en/downloads/downloadscompanionosaxen.html
    Satimage osax > resource suites dictionary
    http://www.satimage.fr/software/en/dictionaries/dict_satimage.html#ResourceSuite
    E.g.
    --SCRIPT
    Copy resource 'clut' id 128 from infile to outfile.
    * Using Satimage.osax, which is to be installed in either of the following directories:
    /Library/ScriptingAdditions/
    ~/Library/ScriptingAdditions/
    set infile to "HFS:path:to:infile" as alias
    set outfile to "HFS:path:to:outfile" as alias
    --(1) get resource and its name from infile
    set rdata to load resource 128 type "clut" from infile
    set rname to get resource name 128 type "clut" from infile
    --return {rname, rdata}
    --(2) put resource to outfile
    put resource rdata to outfile type "clut" index 128 with name rname
    --(3) check
    set rdata1 to load resource 128 type "clut" from outfile
    set rname1 to get resource name 128 type "clut" from outfile
    return {rdata = rdata1, rname = rname1}
    --END OF SCRIPT
    Good luck,
    H

  • EPS-file: How to preserve resource fork when moving file to Linux

    Hi!
    We have a following problem on our DAM system:
    When saving an EPS-file from Photoshop CS2 on 10.4 with Machintosh preview we can´t transfer the file to Linux DAM system without losing the preview picture. Apparently this is because the PICT preview file is in resource fork of the file and Linux doesn´t understand anything about those.
    The problem occurs only with Freehand MX when using these un-"resource forked" files. Then using EPS with TIFF-preview we get a black background if cut path is used in the image so that´s not a proper solution.
    Can ANYONE point me a possible solution: how can I transfer Macintosh files on Linux without losing resource forks??
      Mac OS X (10.4.8)  

    Control-click on the file and choose the Create
    Archive of "blah" item in the menu that pops up.
    This creates a file called "blah.zip", which has
    been compressed in such a way that it can be safely
    stored on non-Mac systems. When it is de-archived
    on another Mac OS X system (by double-clicking it),
    the file should be intact. (Note that third-party
    apps for decoding zip files may not properly restore
    the resource fork, as the Mac's archive function
    creates a zip archive with the resource contents
    stored in a special way, which other unzip utilities
    will just read as another file (or folder, don't
    recall which).
    Thanks but I should have been more precise:
    What I meant was that is there any tool for Linux to handle resource forks without archiving/compressing the file?
    Our DAM generates preview image for the EPS automatically so it can´t be inside compressed file.

  • Turn "Delete Resource Account" for Active Directory into rename/move/unlink

    My Windows sysad would like me to stop deleting Active Directory users; he's tired of cleaning up from dangling SIDs, and I don't particularly blame him. Instead, he would like the process of "deleting" an AD account to be more like:
    1. disable
    2. rename from cn=user to cn=user_999, where 999 is replaced with an incrementing number (jsmith_001, jsmith_002, etc.). (Or maybe he;d be Ok with jsmith_yyyymmddhhmmss...)
    3. move (probably in the same "rename" above) from ou=Employees to ou=4Delete.
    4. unlink account from user.
    We are assigning AD accounts through roles, and so the Delete Resource User (or Delete Resource Person?) task is invoked. Does anyone have a customized version of this task that differentiates between resource account types and handles the "disable/rename/move/unlink" AD account paradigm my sysad would like? -Les

    Hi,
    did you ever resolve this? If so, how did you work it out as we would like to do the same.
    Thanks.

  • Error in Deleting Resources

    I need help on figuring why we are getting this problem on resources. We have admisitrator that are having problem on deleting resources and some have no trouble at all. I looked at the way we are set-up on the roles and permission and we are granted the same permission sets in OLMS. What am I missing?

    what is the error you are getting? post the error or java stack to the forum. I got similar problem while deleting courses/offerings and oracle provided a code fix.
    Ram G

  • Resource forks -- are they what is slowing CCCloner when backing up?

    I've been testing CCCloner and SilverKeeper as backup utilities. I've used SK for the last 8 years and haven't noticed anything amiss. In my situation, it searches for changes during an incremental backup about 8 times faster than CCC. Mike Bombich, the author of CCC, has responded to my query about why this is the case with a detailed explanation (see http://forums.bombich.com/viewtopic.php?t=15540, last post), part of which reads:
    For the purpose of this conversation, though, the gist is that you have many files that have two data structures -- a data fork and a resource fork. Each of these data structures can change independently of each other. Resource forks, however, do not have modification dates -- the modification date of a file only refers to the data fork. As a result, backup utilities have a choice among three methods for determining whether to backup the resource fork as they scan your filesystem:
    a) copy every resource fork, every time, just to be on the safe side
    b) copy the resource fork of a file whenever the data fork of the file changes, or when the size of the resource fork has changed
    c) compare a checksum of the resource fork on the source and target to determine if the resource fork has actually changed
    According to Mike, SK uses method 2 whereas CCC uses Method 3, explaining why it is so much slower for my backups -- because 36,000 of my 58,000 files have "extended attributes" which are probably resource forks.
    My question arises because I want to make sure the SK is accurately backing up my PS files. Is it possible that a utility using Method 2, could miss some change in a resource fork of a PS file? To put it another way: are there any instances where PS could change a resource fork, but the data fork is unchanged and the size of the resource fork is unchanged, resulting in Method 2 not backing up that particular file?
    I must have backed up in excess of 100,000 PS files over the years, and haven't noticed any problems. But then again, I have rarely had to call on my backups.

    Why not use Time Machine instead of some "third party hack" for your backups?
    CCCloner is worthless garbage IMHO. I tried to restore a system with it after a HD replacement and it wouldn't work because the owner changed user name and/or password on reinstall of the OS. Thus it wouldn't recognize the Library to copy the files. In fact, it wouldn't grant access to the backup, claiming permissions conflicts. I had to run a CHMOD and CHOWN from Single User Mode to be able to get to backed up files, but the Library and Applications were useless.
    From what I know of it, CCC is OK for cloning a brand new hard drive to put in a new machine, but beyond that it's way too complicated in what it does and how.
    As far as PS changing data or resource forks, I was never aware that it did. I could be mistaken.
    This question would be better answered by the developers of SilverKeeper though.

  • Disk Copy .img w/out resource fork

    I recently zeroed-out and repartitioned my Wallstreet hard-drive. Before I did so, I put all important files (mostly a decade's worth of Word .docs) in a compressed, read-only .img created by Disk Copy.
    Due to cramped-ness of my 2 gb drive, lack of CD burner, and difficulty Apple-Talking between OS 9 and Tiger, I decided to have Disk Copy write the .img directly to my USB thumb drive.
    Unfortunately, the thumb drive was naturally in a FAT format. And since it took upwards of four hours to create and compress the .img via my USB 1.1 connection, I decided not to test mount it before I proceeded with the repartition. And so I didn't realize until much too late that the .img I'd created was doomed to fail from the start, being without a resource fork.
    So now I've spent two days trying to recover the pristine beauties of the .img data fork but have so far failed.
    I've used ResEdit to create a fork and copy and paste into it the three necessary resource types from various uncorrupted .imgs made specifically for the purpose. I've reset creator and type to rohd and ddsk. I've tried fiddling with the code in the bcem resource to trick Disk Copy into mounting the issue. I've turned off all checksumming. I've tried both Disk Copy and the Disk Utilities in Jaguar and Tiger. And I've tried to mount it with a disk-mounting utility in Windows XP, thinking that perhaps a Windows utility might succeed, not needing the resource fork.
    Nothing has worked. I get a variety of errors depending on which OS I'm working in, but the gist is the same. File is damaged; can't be mounted.
    I've been through all the what-ifs and should-haves, and I've ransacked Google and various boards for ideas, and I'm still stuck.
    Does anyone know of a method whereby the contents of an (unfortunately) compressed Disk Copy .img can be recovered without the resource fork? I've got 835 mb of perfect data that I can't access for the lack of a few k.
    Are there any bcem resource hacks I can try?
    Any third party utilities?
    Windows utilities?
    I'd even be willing to try hacking Disk Copy itself if somebody could get me pointed in the right direction.
    Disk Copy, give me back my legions!!
    Thanks for any and all help.
    Dave

    Ha HA!
    The problem was not quite what I thought.
    The problem wasn't that I had saved the .img to a FAT thumb drive. The problem was that I copied the contents of that FAT disk onto my Tiger Intel iMac and then later recopied it onto the FAT drive--without including the OS-9-created FINDER.DAT and RESOURCE.FRK files when I did so; I simply grabbed the .img file, thinking it had all the info I needed.
    But then I read this:
    http://discussions.apple.com/thread.jspa?threadID=121732
    When I went back and looked on my Intel drive, I found the RESOURCE.FRK and FINDER.DAT files still patiently waiting for me. I copied those files (and Desktop DB, Desktop DF, FILEID.DAT for good measure) onto the FAT thumb drive along with the .img file and plugged the drive into the Wallstreet. Lo and behold, only the .img file was visible. OS 9 had automatically taken the information from the other files (including the longed-for resource fork) and incorporated them back into the .img file.
    I copied it onto the Wallstreet, and bingo! it mounted perfectly.
    Yay!
    Perhaps some poor soul in the future will benefit from my experience (although given the state of OS 9 these days, that's probably not too likely.)
    Thanks all,
    Dave

  • Why do aliases have giant resource forks?

    ...and what's the best way to remove them?
    I noticed recently that aliases that I create take up multi-megabytes of disk space, rather than the couple dozen k that they used to take on older operating systems. I found some threads here in the support community that explain that these aliases contain huge, apparently useless, data or resource forks. What I can't find is a good answer to these two quesitons:
    1. Why? Is there a reason why Mavericks creates these big forks in an alias? Is it used for something? Is it a mistake? Is there some reason Apple did this? Do we think they'll change it in the future?  (What a huge nuisance to have to modify these files!)
    2. What's the best way to get rid of these forks if I want to do that? I found one link to some sort of script, but it seemed dangerous to me, and it's an unrecongized developer, so I can't easily launch it anyway. In the App Store, I find one utility that might do the trick: FileUtility. Not sure if I should trust it. It has been reviewed by exactly one person, and that review is incoherent.   Any suggestions?

    Hi William,
    That makes sense - but I had looked at my IIS setups and they appear the same for all KBs, again here are settings for WPA Supplier & User. I created both the same day, the same way, and have compared all tabs which are identical. I can double check on how the DNS aliases that were set up, but they should have been identical as well

  • OSX and Windows Server 2000 resource forks

    Our shop is 95% OSX with a Windows Server 2000 server. There is one application that is sensitive to image file resource forks copied to the server. When the app does a particular operation if there are resource forks in the folder the operation fails.
    Is there a way to either strip the forks on the copy operation? Or is there a way to block them in Windows Server?
    BTW, the application is a dedicated print server RIP linked to a Durst photographic printer running on Windows XP.
    G5   Mac OS X (10.4.6)   Windows Server 2000
    G5   Mac OS X (10.4.6)   Windows Server 2000
    G5   Mac OS X (10.4.6)   Windows Server 2000

    I feel your pain. I have been dealing with the same thing and found the following options:
    Try turning on "Services for Macintosh" or SFM on the windows server. I am NOT a windows guy I have had mixed results when my LAN folks have done this for me. In some instances the ._rsrc files don't appear, and this won't fix long name issues if you are having them.
    Another way to go w/o touching the windows server...third party.
    Path Finder 4: http://www.cocoatech.com/pf4
    Blue Harvest: http://zeroonetwenty.com/blueharvest/#faq
    KopyMac 2.6.1b: http://www.tcsn.net/mont/index2.html
    I have not tried the third party solution yet. I am still convinced there must be some way to have the mac just stop creating the files, but so far I have nothing. The only article apple has that is remotley related addresses .DS_Store files and NOT the ._rsrc files. I tries the edit to com.apple.desktopservices.plist and I still had a server full of ._bsfile.
    Hope this helps, and if anyone out there has the 100% mac solution PLEASE share.
    PowerBook G4   Mac OS X (10.4.6)  

Maybe you are looking for