UTI详解
26 January 2018
UTI Overview
参考:
mdls
You can use the mdls tool to inspect the UTIs currently attached to any item in your file system. This is also quite useful to see if your UTI definitions for your custom type are correct.
LuoWeideMacBook-Pro:Movies luowei$ mdls MyInputMethod.mov
kMDItemAudioBitRate = 302
kMDItemAudioChannelCount = 2
kMDItemCodecs = (
AAC,
"H.264"
)
kMDItemContentCreationDate = 2018-01-18 09:31:15 +0000
kMDItemContentCreationDate_Ranking = 2018-01-18 00:00:00 +0000
kMDItemContentModificationDate = 2018-01-18 09:31:25 +0000
kMDItemContentType = "com.apple.quicktime-movie"
kMDItemContentTypeTree = (
"com.apple.quicktime-movie",
"public.item",
"public.movie",
"public.audiovisual-content",
"com.apple.quicktime-movie",
"public.data",
"public.content"
)
kMDItemDateAdded = 2018-01-18 09:31:25 +0000
kMDItemDateAdded_Ranking = 2018-01-18 00:00:00 +0000
kMDItemDisplayName = "MyInputMethod.mov"
kMDItemDurationSeconds = 738.3980166666666
kMDItemEncodingApplications = (
"Mac OS X 10.13.2 (17C205)"
)
kMDItemFSContentChangeDate = 2018-01-18 09:31:25 +0000
kMDItemFSCreationDate = 2018-01-18 09:31:15 +0000
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = (null)
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = (null)
kMDItemFSLabel = 0
kMDItemFSName = "MyInputMethod.mov"
kMDItemFSNodeCount = (null)
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 293063651
kMDItemFSTypeCode = ""
kMDItemInterestingDate_Ranking = 2018-01-18 00:00:00 +0000
kMDItemKind = "QuickTime 影片"
kMDItemLogicalSize = 293063651
kMDItemMediaTypes = (
Sound,
Video
)
kMDItemPhysicalSize = 302112768
kMDItemPixelHeight = 1920
kMDItemPixelWidth = 1080
kMDItemStreamable = 0
kMDItemTotalBitRate = 3168
kMDItemVideoBitRate = 2865