AppleScript名:指定フォルダ以下のすべてのファイルを再帰で取得(spotlightで処理).scpt |
use AppleScript version "2.4" use framework "Foundation" use scripting additions use mdLib : script "Metadata Lib" version "1.0.0" –https://www.macosxautomation.com/applescript/apps/Script_Libs.html#Metadata_Lib –set theFolder to choose folder set theFolder to (path to desktop folder) set theFiles to mdLib’s searchFolders:{theFolder} searchString:"kMDItemContentType IN[c] %@" searchArgs:{"com.apple.applescript.script", "com.apple.applescript.script-bundle"} |
More from my site
(Visited 51 times, 1 visits today)