This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--在Automator新建Service,Utilities选Run AppleScript,粘帖以下代码,保存命名为evernote-diarynew | |
--在System Prefrences > Keyboard > Application Shortcut,点+号新增 | |
--Application选Evernote, Menu Title写evernote-diarynew, Keyboard Shortcut自选,推荐Command+D | |
on run {input, parameters} | |
set yearStr to do shell script "date +%Y" | |
set dateStr to do shell script "date +%Y-%m-%d" | |
set diaryNotebook to "[日志-" & yearStr & "]" | |
set searchQuery to ("notebook:" & diaryNotebook & " intitle:" & dateStr) as string | |
set searchQueryCollection to ("notebook:" & diaryNotebook) as string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(global, undefined) { | |
"use strict"; | |
var Pocket = (function() { | |
var https = require("https"); | |
function Pocket(opt) { | |
this.consumer_key = opt.consumer_key; | |
this.access_token = opt.access_token; | |
} |