利用KM创建以日期命名的文件夹
2017-02-22 本文已影响33人
鸭梨山大哎
首先触发随便!
之后如图

关键是看懂KM怎么传递参数到applescript的就ok了!
注意Keyboard Maestro Engine的参数带引号!
tell application "Keyboard Maestro Engine"
set x to value of variable "dd"
tell application "Finder"
set selection to make new folder at (get insertion location) with properties {name:x}
end tell
end tell
当然只用applescript也是可以的
tell application "Finder"
set x to current date
set y to short date string of x
set selection to make new folder at (get insertion location) with properties {name:y}
end tell