Very interesting!
So the thing to do would be to modify the alfred_library.scpt in the bundle:
on createNote(noteTitle, noteBody, notesFolder, notesAccount)
tell application "Notes"
if notesAccount is not "" then
tell account notesAccount
if notesFolder is not "" then
tell folder notesFolder to set theNote to make new note with properties {name:noteTitle, body:noteBody}
else
tell first folder to set theNote to make new note with properties {name:noteTitle, body:noteBody}
end if
end tell
else
tell first account
if notesFolder is not "" then
tell folder notesFolder to set theNote to make new note with properties {name:noteTitle, body:noteBody}
else
tell first folder to set theNote to make new note with properties {name:noteTitle, body:noteBody}
end if
end tell
end if
end tell
--this is the bit that will open the note
set old_delim to applescript's text item delimiters
set applescript's text item delimiters to "/"
set noteFile to (last text item of theNote's id) & ".notesexternalrecord"
set applescript's text item delimiters to old_delim
do shell script "find ~/Library/Containers/com.apple.Notes/Data/Library/CoreData/ -name " & quoted form of noteFile & " |xargs open"
end createNote
I'm actually considering putting this into the released workflow, maybe via a modifier key. Very cool!