AppleScript名:指定ファイルのUTI情報を取得 |
— Created 2017-10-25 by Takaaki Naganoya — 2017 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" use framework "MagicKit" –https://github.com/aidansteele/magickit set aFile to POSIX path of (choose file) set aRes to (current application’s GEMagicKit’s magicForFileAtPath:aFile) set aaRes to aRes’s |description|() as string –> "ISO Media, MPEG v4 system, version 2" set aMime to (aRes’s mimeType()) as string –> "video/mp4; charset=binary" set utiList to (aRes’s uniformTypeHierarchy()) as list –> {"com.apple.quicktime-movie", "public.movie", "public.audiovisual-content", "public.data", "public.content", "public.item"} set aDesc to (aRes’s |description|()) as string –> "ISO Media, Apple QuickTime movie" |
More from my site
(Visited 20 times, 1 visits today)