Fwd: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
Fwd: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
- Subject: Fwd: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
- From: "Mark J. Reed" <email@hidden>
- Date: Mon, 18 Dec 2006 23:30:42 -0500
---------- 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