Skip to content

Instantly share code, notes, and snippets.

@yue4u
Created September 17, 2018 07:22
Show Gist options
  • Save yue4u/b8f5ee4e5f14eb735cafe65b01826f55 to your computer and use it in GitHub Desktop.
Save yue4u/b8f5ee4e5f14eb735cafe65b01826f55 to your computer and use it in GitHub Desktop.
add picutures to evernote
# set new_notebook to "__name__"
# set picture_dir to "__dir__"
set this_title to "__title__"
(* tell application "System Events"
set picture_list to POSIX path of disk items of folder picture_dir
end tell
*)
tell application "Evernote"
tell application "Evernote" to set my_notebooks to name of every notebook
print my_notebooks
# create notebook new_notebook
(* set n to 1
repeat with mypicture in picture_list
create note notebook new_notebook title n from file mypicture
set n to n + 1
end repeat*)
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment