Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

.cwk how to find all documents that are created by Claris Works and Apple Works

I too have the problem of no longer being able to use .CWK documents if I switch to Lion


Now I need to find all the documents created by CW or AW, and have done a normal search using .cwk as criteria and cannot find them all. I know there are documents that do not have a .cwk behind them as they where originally created in OS 7, 8 or 9, or thereabouts and in years of upgrading the .cwk got lost.


Any tips as to how to find them all, in order to translate them or store them as PDF?


Thanks

MBP, MM, MBP - 10.6 + Windooz XP on a hard partition

Posted on Sep 9, 2011 6:46 AM

Reply
33 replies

Sep 11, 2011 10:18 PM in response to mns579

I started a Raw Query search for the shorter string "BOBO". No results after 45 minutes or so. Restricted the search to the folder where my documents are saved, Still no results after 30 minutes (timed). Aborted.



Tried again, using the full search string "kMDItemFSCreatorCode=BOBO"


Results were almost instant. Several types, including about 1700 Documents.


Must learn to trust the advice given. 😉


Regards,

Barry

Sep 12, 2011 2:16 PM in response to fruhulda

Binaries in Snow Leopard reveal kMDItemFSCreatorCode in only two pieces of active code:


/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata .framework/Versions/A/Metadata


/System/Library/PrivateFrameworks/SpotlightIndex.framework/Versions/A/SpotlightI ndex


But kMDItemFSCreatorCode itself appears to have been deprecated as a metadata attribute. (Or perhaps it was never fully implemented. I don't find it listed in Apple's metadata reference guides going back to Tiger.) Scanning through the various .lproj files in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Resources/ does not reveal any mappings in the schema.strings files where I would expect to find kMDItemFSCreatorCode listed for a metadata attribute that Apple continues to support. Nonetheless, vestiges of the code that makes the Raw Query/kMDItemFSCreatorCode search work still live in Snow Leopard binaries.


Presumably Apple engineers believe that kMDItemCreator will serve adequately into the future. Perhaps, but first there's a lot of clean-up work to do on the past before making the transition.


@fruhulda--I switched to Swedish on a clone drive and the Raw Query worked for me (no translation needed). Perhaps the difference is that I originally installed the OS in English and therefore can access kMDItemFSCreatorCode in a Raw Query in any language. But honestly, I don't really know.


@ChangeAgent--Glad to hear it's working.


Message was edited by: mns579-- The forum message system introduced a few blank spaces into the paths above. I think you can see where they are. I don't know how to remove the spaces.

Sep 21, 2011 6:02 AM in response to fruhulda

You could Raw Query search on the type code used for files created by the AW/CW Drawing subprogram:


kMDItemFSTypeCode=CWGR


Metadata queries can also be chained for greater precision. Thus you could combine the two Raw Query search strings to specify files with creator code BOBO and type CWGR:


kMDItemFSCreatorCode=BOBO && kMDItemFSTypeCode=CWGR


But other than slowing down the search, there's nothing to gain from the additional precision.


Question for Lion users: do these metadata attributes continue to exist for files migrated from older operating systems? In other words, when performing a command-line mdls on, say, an AW/CW Drawing file, is there still an entry for kMDItemFSTypeCode or kMDItemFSCreatorCode--or have the old type and creator codes disappeared with the advent of Lion?

Sep 21, 2011 6:31 AM in response to mns579

mns579 wrote:


But other than slowing down the search, there's nothing to gain from the additional precision.



For me yes, as I need to separate the WP documents from the DR and the PT ones (I have over 2000 documents). This in order to translate the DR and PT ones as I will not be able to do this in Lion. The WP ones open in Notes under Lion, so here we are OK.


Could you tell me how I filter out the PT and WP ones?

Sep 21, 2011 8:36 AM in response to ChangeAgent

My point about refining the creator code BOBO results by further restricting to type CWGR is that all CWGR files are BOBO files--that is, the CWGR files are a nested set inside the BOBO set. Spotlight will move more slowly with two search terms than it does with one, and, for your purposes, only one is needed. (Offering more information than you probably need. . . .)


You can use these Raw Query searches for each of the AW/CW subtypes:


(Drawings) kMDItemFSTypeCode=CWGR

(Paintings) kMDItemFSTypeCode=CWPT

(Spreadsheets) kMDItemFSTypeCode=CWSS

(Presentations) kMDItemFSTypeCode=CWPR

(Databases) kMDItemFSTypeCode=CWDB

(Wordprocessing) kMDItemFSTypeCode=CWWP

.cwk how to find all documents that are created by Claris Works and Apple Works

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.