Hi deanishe-
I've spent some time on this problem. Not sure what piece I'm missing. I have a bash script and I would like to emit a couple of variables. I thought I was doing what you said here but I can't get it to work. Here is my script.
if [[ ${filename} == "" ]]; then
filename="note.txt"
fullpath=${filepath}/${filename}
else
fullpath=${filepath}/${filename}
fi
echo ${fullpath} >&2
#touch ${fullpath}
#open ${fullpath}
printf '{"alfredworkflow": {"arg": "%s", "variables": {"fullpath": "%s"}, {"filename": "%s"}}}' "$fullpath" "$fullpath" "$filename"
Then I have this connected to a Large Type output and am trying to print {var:fullpath} but it's just blank every time. When I print {query} it shows the whole JSON fine, but as you said, it appears Alfred is not parsing the JSON object. I don't know why. Any help would be really appreciated. Thanks.