• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 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]

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

References: 
 >Fwd: Can't get every document file of every folder of startup disk whose creator type = "MSIE" (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
  • Next by Date: Re: Picturebox to graphic box
  • Previous by thread: Fwd: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
  • Next by thread: Re: Want to get the full path of the mailbox
  • Index(es):
    • Date
    • Thread