I’ve put together an Applescript to create notes from templates. The final step is to select the note that has been imported so that I can type right into it. I can’t for the life of me find a way to do this in the script dictionary. All the selections are read-only. Any ideas?
-- Create a new notebook, import the template file, and show shortcut
tell application "Evernote"
set newNotes to import templatePath to curNotebook with tags
set newNote to item 1 of newNotes
set query string of front window to (("notebook:\"" & curNotebook & "\"" as string) & " tag:\"" & curTime & "\"" & " tag:\"@" & templateName & "\"" as string)
set creation date of newNote to current date
set modification date of newNote to current date
-- SELECT THE NOTE SOMEHOW
end tell
Thanks.
2 replies to this topic
#1
Posted 26 December 2012 - 10:03 AM
#2
Posted 27 December 2012 - 09:44 PM
Indeed, selections are read only. Have you thought about using the "open note window" command?
#3
Posted 28 December 2012 - 02:09 AM
Good suggestion. That isn’t exactly what I want; I have no need for the extra window, but it is definitely better than importing the note and having it not be focused.
The ability to affect the selected note, especially in list view would be a great feature to add.
The ability to affect the selected note, especially in list view would be a great feature to add.
Also tagged with one or more of these keywords: applescript
Learn & Share →
Evernote for Developers →
✔ Get Child Tags in ApplescriptStarted by mmorowitz, 16 May 2013 |
|
|
||
Mac
Evernote Products →
Evernote →
Importing Evernote Entries from JournlerStarted by rforest, 24 Apr 2013 |
|
|
||
Mac
Learn & Share →
Evernote for Developers →
Applescript fails when only EvernoteHelper is runningStarted by Jason_ttt, 12 Apr 2013 |
|
|
||
Learn & Share →
Evernote for Developers →
Problem with AppleScript and TagsStarted by Tito, 01 Apr 2013 |
|
|
||
Mac
Evernote Products →
Evernote →
AppleScript Gone BadStarted by wlmorin, 23 Mar 2013 |
|
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












