Jump to content
alexp

mac (Archived) AppleScript Create note from URL returns missing value

Recommended Posts

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?

Share this post


Link to post

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

Share this post


Link to post
Guest
This topic is now closed to further replies.

×
×
  • Create New...