EvernoteのAppleScript機能拡張が意外と便利
2010.09.14
最近Mac版のEvernoteが新しくなりましたが、個人的にちょっと注目した機能がAppleScript関連の機能拡張
Evernoteの本家サイトにもサンプルと、指定フォルダ以下のPICTファイルをGraphicConverterでJPEGに変換というAppleScriptのサンプルを頼りにして特定のフォルダ配下の写真をまとめてインポートするスクリプト書いてみました。
1.取り込みたい写真を適当な場所(例:デスクトップ上)にフォルダを作成して1つにまとめておきます。※iPhoto使って写真管理している人はiPhotoの写真書き出し機能などをつかってまとめておきます
2.AppleScriptを実行するためのスクリプトエディタを起動します。場所は
アプリケーション→AppleScript→スクリプトエディタ

3.スクリプトエディタを起動したら、この下に書いたソースコードをコピペして実行ボタンを押します
set aFol to choose folder set fList to {} set f_r to a reference to fList tell application "Finder" set fList to entire contents of aFol as alias list end tell repeat with i in f_r set j to contents of i set aInfo to info for j set aF to folder of aInfo try set aInfo to info for j set aF to folder of aInfo on error set aF to false end try importJPEG(j) of me end repeaton importJPEG(aFile)
tell application "Evernote"
create note title "import picture" with text "" attachments aFile
end tellend importJPEG
投稿者 : 小山田 浩 | 投稿日時 : 2010.09.14 09:37
あすなろBLOGのトラックバック・コメントは承認制になっています。
すぐにブログに反映されませんので、ご了承ください。




