Jump to content
  • 0

(Archived) AppleScript Create note from URL returns missing value


alexp

Idea

Hi,

I'm trying to automate a couple of processes that would results in new Evernote notes based on URLs.

Anyways it looks like in the following code nnote is the missing value (instead of pointing to the newly created note):


set nnote to (create note from url tabURL notebook notebookName tags tagList)

In the following code tnote is correctly pointing to the newly created note:


set nnote to (create note from url tabURL notebook notebookName tags tagList)

Is there any workaround for this behavior?

I can imagine something like introducing a delay, searching for the note using the original URI and then making any changes on that. Is this the only way?

Link to comment

1 reply to this idea

Recommended Posts

Yeah, I have the same problem. Here's my workaround:

set
input
to
["
as
URL
]

tell
application
"Evernote"

repeat
with
u
in
input

create note
from url u

-- evernote bug: we get a missing value

set
matches
to
(
find notes
("sourceURL:\"" & (u
as
text
) & "\"" ))

set
n
to
first
item
of
matches

open note window
with n

end
repeat

-- open input

end
tell
Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...