Created
September 17, 2018 07:22
-
-
Save yue4u/b8f5ee4e5f14eb735cafe65b01826f55 to your computer and use it in GitHub Desktop.
add picutures to evernote
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
# 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