Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. tell application "Notes"
  2. set theMessages to every note
  3. repeat with thisMessage in theMessages
  4. set myTitle to the name of thisMessage
  5. set myText to the body of thisMessage
  6. set myCreateDate to the creation date of thisMessage
  7. set myModDate to the modification date of thisMessage
  8.  
  9. tell application "Evernote"
  10. set myNote to create note with text myTitle title myTitle notebook "Imported Notes" tags ["imported_from_notes", "Mavericks", "Another_Example_Tag"]
  11. set the HTML content of myNote to myText
  12. set the creation date of myNote to myCreateDate
  13. set the modification date of myNote to myCreateDate
  14. end tell
  15. end repeat
  16. end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement