« [Preview]画像フォルダを開く | トップページ | [CFBundleDocumentTypes]アプリケーションの対応DocumentTypesを取得する »

[UTType]拡張子からUTIを求める


【スクリプトエディタで開く】|

#!/usr/bin/env osascript
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
#
#com.cocolog-nifty.quicktimer.icefloe
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
use AppleScript version "2.8"
use framework "Foundation"
use framework "UniformTypeIdentifiers"
use scripting additions
property refMe : a reference to current application

log (refMe's UTType's typeWithFilenameExtension:"PDF")'s identifier() as text
-->(*com.adobe.pdf*)

|

« [Preview]画像フォルダを開く | トップページ | [CFBundleDocumentTypes]アプリケーションの対応DocumentTypesを取得する »

UTType」カテゴリの記事