on run argv
set theQuery to item 1 of argv
set myDelimiter to "="
set AppleScript's text item delimiters to myDelimiter
set myList to every text item of theQuery
set lastItem to last item of myList
set AppleScript's text item delimiters to ""
set newString to text 1 thru -2 of lastItem
set AppleScript's text item delimiters to ""
try
set joplinLink to "joplin://x-callback-url/openNote?id=" & newString
--display dialog joplinLink
tell application "Joplin" to activate
open location joplinLink
end try
end run
Is this search or is this open specific note where I know the note name? Or do I need to have the note highlighted in Joplin and then invoke the trigger in Alfred?
You might find this interesting: https://github.com/Marcuzzz/joplin_alfred_actions