An Apple Script used to import all pictures in a folder into Evernote (for Alfred)
on alfred_script(q)
-- your script here
tell application "Finder"
set fl to files of folder POSIX file "/Users/wangzhixiang/Dropbox/Screenshots" as alias list
end tell
tell application id "com.evernote.evernote"
set note1 to create note title "KnowledgeCard" with text "test!" notebook "N1"
repeat with f in fl
tell note1 to append attachment f
end repeat
open note window with note1
end tell
end alfred_script
-- -----------------------
-- reference
-- https://dev.evernote.com/doc/articles/applescript.php
-- http://www.documentsnap.com/evernote-mac-import-folder/
-- http://macscripter.net/viewtopic.php?id=45602