Skip to content

Instantly share code, notes, and snippets.

@shenyubao
Created October 20, 2013 14:01
Show Gist options
  • Save shenyubao/7070048 to your computer and use it in GitHub Desktop.
Save shenyubao/7070048 to your computer and use it in GitHub Desktop.
link GeekTools With Evernote
// 脚本内容
// 注意修改脚本17行中的路径 与15行中的tag
tell application "System Events"
set processList to (name of processes)
end tell
if processList does not contain "Evernote" then
tell application id "com.evernote.evernote"
activate
end tell
end if
tell application "Evernote"
set the_Selection to find notes "tag:dailycheck"
set the_HTML to HTML content of (item 1 of the_Selection)
set plain_Text to do shell script "echo " & quoted form of the_HTML & space & "| textutil -convert txt -stdin -output '/Users/shenyubao/Library/Scripts/Applications/Evernote/dailycheck.txt'"
end tell
// 设置MAC下的自动运行
// 1.打开Automator
// 2.新建应用程序
// 3.脚本设置: (1).运行AppleScript(上述代码) . (2).设置运行等待时间 (3).设置循环次数
// 4.保存脚本
// 5.系统偏好设置->用户与群组->登陆项->新增步骤4生成脚本
// GeekTools设置:
// Shell脚本 -> Cat PATH
// (PATH为ActionScript脚本中所填路径
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment