Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. tell application "Evernote"
  2. set foundNotes to find notes
  3.  
  4. repeat with aNote in foundNotes
  5. set enTitle to (the title of aNote)
  6. set aHTML to HTML content of aNote
  7. if exists (source URL of aNote) then
  8. set aHTML to "<p>source url: " & source URL of aNote & "</p>" & aHTML
  9. end if
  10. set folderName to (name of notebook of aNote)
  11. tell application "Notes"
  12. tell account [0]
  13. if not (exists folder folderName) then
  14. make new folder with properties {name:folderName}
  15. end if
  16. if not (exists note enTitle in folder folderName) then
  17. make new note at folder folderName with properties {name:enTitle, body:aHTML}
  18. end if
  19. end tell
  20. end tell
  21. end repeat
  22. end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement