利用KM创建以日期命名的文件夹

作者: 鸭梨山大哎 | 来源:发表于2017-02-22 20:46 被阅读33次

    首先触发随便!
    之后如图

    Paste_Image.png

    关键是看懂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
    
    

    相关文章

      网友评论

        本文标题:利用KM创建以日期命名的文件夹

        本文链接:https://www.haomeiwen.com/subject/lvamwttx.html