Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
- Subject: Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
- From: Matthew Smith <email@hidden>
- Date: Tue, 19 Dec 2006 15:46:10 +1100
- Thread-topic: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
On 19/12/2006 15:30, "Mark J. Reed" <email@hidden> wrote:
> ---------- Forwarded message ----------
> From: Mark J. Reed <email@hidden>
> Date: Dec 18, 2006 11:30 PM
> Subject: Re: Can't get every document file of every folder of startup
> disk whose creator type = "MSIE"
> To: Matthew Smith <email@hidden>
>
>
> On 12/18/06, Mark J. Reed <email@hidden> wrote:
>> mdfind doesn't exactly have the most informative man page.
>
> Found the query doc. Not much help - no info about how the literal
> strings are encoded or if that's mutable, and the kMDItemFSCreatorCode
> attribute is oddly missing from the doc.
>
> But this handy-dandy Perl one-liner will convert the code string to a
> number for you; for instance, to get the numeric equivalent of creator
> code "MACS":
>
> perl -le 'print unpack("N", pack("A*", "MACS"))'
> 1296122707
The way I found out some information was to use mdls on a file to see the
results. That's where I saw kMDItemFSCreatorCode. I could then the example
file to find others.
For example, doing "mdls BRS-ROTH-P00053-1.doc" gave me:
BRS-ROTH-P00053-1.doc -------------
kMDItemAttributeChangeDate = 2006-10-30 15:14:41 +1100
kMDItemContentCreationDate = 2006-10-30 15:14:39 +1100
kMDItemContentModificationDate = 2006-10-30 15:14:40 +1100
kMDItemContentType = "com.microsoft.word.doc"
kMDItemContentTypeTree = (
"com.microsoft.word.doc",
"public.data",
"public.item",
"public.composite-content",
"public.content"
)
kMDItemDisplayName = "BRS-ROTH-P00053-1.doc"
kMDItemFSContentChangeDate = 2006-10-30 15:14:40 +1100
kMDItemFSCreationDate = 2006-10-30 15:14:39 +1100
kMDItemFSCreatorCode = 1297307460
kMDItemFSFinderFlags = 0
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSLabel = 0
kMDItemFSName = "BRS-ROTH-P00053-1.doc"
kMDItemFSNodeCount = 0
kMDItemFSOwnerGroupID = 501
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 43520
kMDItemFSTypeCode = 1463304782
kMDItemID = 3407059
kMDItemKind = "Microsoft Word document"
kMDItemLastUsedDate = 2006-10-30 15:14:39 +1100
kMDItemTitle = "Seven Days"
kMDItemUsedDates = (2006-10-30 15:14:39 +1100)
--
Matthew Smith
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden