With Terminal or a BBEdit Worksheet run the command mdls  on a file you 
want to examine the metadata for. For example, a BBEdit newly created and 
saved  Apache Configuration File language type small test file, the command:

mdls /Users/grp/Documents/BBEdit\ temp/MyTest3.htaccess

has the output:

kMDItemContentCreationDate         = 2020-03-07 04:38:59 +0000
kMDItemContentCreationDate_Ranking = 2020-03-07 00:00:00 +0000
kMDItemContentModificationDate     = 2020-03-07 04:38:59 +0000
kMDItemContentType                 = "dyn.ah62d4rv4ge80u7dbqrv0n65x"
kMDItemContentTypeTree             = (
    "dyn.ah62d4rv4ge80u7dbqrv0n65x",
    "public.item",
    "dyn.ah62d4rv4ge80u7dbqrv0n65x",
    "public.data"
)
kMDItemDateAdded                   = 2020-03-07 04:38:59 +0000
kMDItemDateAdded_Ranking           = 2020-03-07 00:00:00 +0000
kMDItemDisplayName                 = "MyTest3.htaccess"
kMDItemFSContentChangeDate         = 2020-03-07 04:38:59 +0000
kMDItemFSCreationDate              = 2020-03-07 04:38:59 +0000
kMDItemFSCreatorCode               = ""
kMDItemFSFinderFlags               = 0
kMDItemFSHasCustomIcon             = (null)
kMDItemFSInvisible                 = 0
kMDItemFSIsExtensionHidden         = 0
kMDItemFSIsStationery              = (null)
kMDItemFSLabel                     = 0
kMDItemFSName                      = "MyTest3.htaccess"
kMDItemFSNodeCount                 = (null)
kMDItemFSOwnerGroupID              = 20
kMDItemFSOwnerUserID               = 501
kMDItemFSSize                      = 22
kMDItemFSTypeCode                  = ""
kMDItemInterestingDate_Ranking     = 2020-03-07 00:00:00 +0000
kMDItemKind                        = "Document"
kMDItemLogicalSize                 = 22
kMDItemPhysicalSize                = 4096

Note: that output is on a Mac OS 10.13 system and my not be the same on 
other system versions.

The entries kMDItemContentType and kMDItemContentTypeTree uses Apple's 
Uniform Type Identification system to describe the data type and/or format 
of the file's content.  Since my system has no known Uniform Type 
Identifier associated with the htaccess file extension, a dynamic type 
identifier is used (the dyn domain).


On Friday, March 6, 2020 at 6:14:02 PM UTC-8, Harvey Pikelberger wrote:

[snip]
>
 

> The interesting thing about your observation is that from what I can tell 
> there's no metadata contained by the file created by text edit that BBEdit 
> wouldn't be getting rid of when it's opened and emptied -- it's a 0 bite 
> file.  But maybe the OS 'knows' something about the file (i.e. external 
> metadata).
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/b078b4af-ed1a-4a0c-950e-03fa572abe49%40googlegroups.com.

Reply via email to