Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Fwd: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Can't get every document file of every folder of startup disk whose creator type = "MSIE"



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


-- Mark J. Reed <email@hidden>


-- Mark J. Reed <email@hidden> _______________________________________________ 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
References: 
 >Can't get every document file of every folder of startup disk whose creator type = "MSIE" (From: Bill Hernandez <email@hidden>)
 >Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE" (From: Matthew Smith <email@hidden>)
 >Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE" (From: "Mark J. Reed" <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.