Jump to content

parentint

Level 1
  • Posts

    6
  • Joined

  • Last visited

Everything posted by parentint

  1. The original script does not work, that's why we're having this discussion.
  2. Hi Adjusting, What I'm trying to do is the titler of this discussion. "Importing from Apple Mail.app's Notes" Except that - as you probably realise - Yosemite has its own stand alone Notes App, meaning notes in Yosemite are no longer stored in the Apple Mail App.Hope that helps.Many thanks
  3. Thank you Adjusting, but I don't see how your script differs from the one I initially tried (see my post dated 18 Jan 10:30AM). Apologies if it is different.
  4. 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
  5. Hi JMichael, I cannot seem to find any apple script command for 'select all' in notes. But is that even possible? Surely there must be such a command. I can certainly select all notes manually in the notes app, so why would this scripting feature be absent? Thanks ever so much for your help. A.
  6. 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...