Hi guys, very new to scripting so please ignore potential idiotic questions
I have this AppleScript that takes some info from keyboard maestro and then creates a markdown note:
tell application "Keyboard Maestro Engine"
set MA_name to getvariable "MA_name"
end tell
-- Create markdown record in specific group
tell application id "DNtp"
try
set theRecord to create record with {name:MA_name, type:markdown}
-- create a new markdown record
#open window for record theRecord -- uncomment if you want to open the new record
activate
#open window for record theGroup -- uncomment if you want to open the group
activate
on error error_message number error_number
if the error_number is not -128 then display alert "DEVONthink" message error_message as warning
end try
end tell
i cant figure out how to tell the script to then choose/focus that note so i can paste some content into it. Currently the note is created but not selected.
any clue?
appreciate the help!
Z