Jump to content

parentint

Level 1
  • Posts

    6
  • Joined

  • Last visited

Posts posted by parentint

  1. Sorry I'm such an applescript novice I've no idea how to include your suggestion. I've typed the following script out (and also tried to tweak it), but it gives me the following error: Expected end of line, etc. but found end of script.

     

    tell application "Notes"

    activate -- bring the Notes client forward

    delay 1 -- wait to make sure the client has fully activated

    tell application "System Events"

    keystroke "|" using command down -- Cmd-| to go to the note list

    keystroke "a" using command down -- Cmd-A to select all

    repeat with thisMessage in theMessages

    set myTitle to the name of thisMessage

    set myText to the body of thisMessage

    set myCreateDate to the creation date of thisMessage

    set myModDate to the modification date of thisMessage

    tell application "Evernote"

    set myNote to create note with text myTitle title myTitle notebook "Imported Notes" tags ["imported_from_notes", "Yosemite", "Another_Example_Tag"]

    set the HTML content of myNote to myText

    set the creation date of myNote to myCreateDate

    set the modification date of myNote to myCreateDate

    end tell

    end repeat

    end tell

  2. I am running Yosemite (Mac OS X 10.10.1 and consequently Apple Notes 3.1 and with the script below I receive the error: "Syntax Error Notes got an error: AppleEvent handler failed." at line two with "every note" highlighted.

    Can anyone help?

     

    tell application "Notes"

    set theMessages to every note

    repeat with thisMessage in theMessages

    set myTitle to the name of thisMessage

    set myText to the body of thisMessage

    set myCreateDate to the creation date of thisMessage

    set myModDate to the modification date of thisMessage

    tell application "Evernote"

    set myNote to create note with text myTitle title myTitle notebook "Imported Notes" tags ["imported_from_notes", "Yosemite", "Another_Example_Tag"]

    set the HTML content of myNote to myText

    set the creation date of myNote to myCreateDate

    set the modification date of myNote to myCreateDate

    end tell

    end repeat

    end tell

×
×
  • Create New...