Automator新建evernote模板筆記本

1,首先在Documents文件夾新建一個(gè)文件夾Evernote Templates。
2,導(dǎo)出你的模板e(cuò)nex格式到這個(gè)文件夾。
3,運(yùn)行腳本

--==============================
-- Create Evernote Template Notebook
-- Version 1.0.0
-- Written By: Ben Waldie <ben@automatedworkflows.com>
-- http://www.automatedworkflows.com
--==============================

-- Get the path to the Evernote templates folder
set theTemplatesFolder to (path to documents folder as string) & "Evernote Templates:" as alias

-- Retrieve a list of template file names without their .enex extensions
set theTemplateNames to list folder theTemplatesFolder without invisibles
repeat with a from 1 to length of theTemplateNames
    set aTemplate to item a of theTemplateNames
    if aTemplate contains ".enex" then set aTemplate to text 1 thru -6 of aTemplate
    set item a of theTemplateNames to aTemplate
end repeat

-- Ask the user to select a template
set theTemplateChoice to choose from list theTemplateNames with prompt "Please select the desired template:" default items {item 1 of theTemplateNames}
if theTemplateChoice = false then return
set theTemplateName to item 1 of theTemplateChoice

-- Ask the user to enter a name for the new notebook
set theNotebookName to text returned of (display dialog "What would you like to name this " & theTemplateName & " notebook?" default answer (short date string of (current date)) & " - " & theTemplateName)

-- Determine the path to the specified template file
set theTemplatePath to theTemplatesFolder & theTemplateName & ".enex" as string as alias

-- Create a new notebook and import the template file
tell application "Evernote"
    set theNotebook to create notebook theNotebookName with type synchronized
    import theTemplatePath to theNotebook with tags
    
    
end tell

參考
https://www.engadget.com/2012/11/20/create-evernote-5-template-notebooks-with-applescript/

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容