Hi,
Is it possible to modify value of default metadata for a file (let say value of kMDItemFSSize OR kMDItemPhysicalSize) ?
Actually I want to display a virtual file icon in finder with some customized values of default metadata.
Below is the list of default metadata for a file:
kMDItemContentCreationDate = 2015-06-18 08:06:50 +0000
kMDItemContentModificationDate = 2015-06-18 08:08:11 +0000
kMDItemContentType = "public.plain-text"
kMDItemContentTypeTree = (
"public.plain-text",
"public.text",
"public.data",
"public.item",
"public.content"
)
kMDItemDateAdded = 2015-06-18 08:08:11 +0000
kMDItemDisplayName = "test.txt"
kMDItemFSContentChangeDate = 2015-06-18 08:08:11 +0000
kMDItemFSCreationDate = 2015-06-18 08:06:50 +0000
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = (null)
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = (null)
kMDItemFSLabel = 0
kMDItemFSName = "test.txt"
kMDItemFSNodeCount = (null)
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 3621
kMDItemFSSize = 3621
kMDItemFSTypeCode = ""
kMDItemKind = "Plain Text Document"
kMDItemLastUsedDate = 2015-06-18 08:08:11 +0000
kMDItemLogicalSize = 3621
kMDItemPhysicalSize = 4096
kMDItemUseCount = 2
kMDItemUsedDates = (
"2015-06-17 16:00:00 +0000"
)
Thanks in advance.