Jump to content


Level 1
  • Content Count

  • Joined

  • Last visited

Posts posted by rajmandalia

  1. Same / similar problem here - I wrote a simple apple script to insert a file as a note in a specified folder and it always returns an error message:

    tell application "Evernote"

    create note title "Note 4" from file "/Users/Raj/Documents/ipscreenshot1.jpg"

    --> missing value

    end tell

    tell current application

    beep 1

    end tell

    Here is the script:

    tell application "Evernote"

    -- create notes, four ways

    -- 1: with plain text


    set notebook1 to "Auto Import"

    --create note title "Note 2" with text "Here is my new text note" notebook notebook1

    -- 4: with the data from a file

    set newnote to create note title "Note 4" from file "/Users/Raj/Documents/ipscreenshot1.jpg" --notebook notebook1

    on error error_message number error_number

    if the error_number is not equal to 0 then --equal to 4 then

    -- The file being imported is not supported

    set userCanceled to false


    display dialog "Your Evernote account does not support the import of this type of file. Why not consider upgrading?" buttons {"Cancel", "Go Premium"} default button "Cancel" cancel button "Cancel" with icon caution

    on error number -128

    set userCanceled to true

    end try


    -- Unspecified failure

    display alert "Import into Evernote failed" message "Error(" & error_number & "): " & error_message as warning

    end if

    end try

    end tell

    Please help and thanks in advance.

  • Create New...