Describe the bug
Similar to this issue: Bugs when Returning JSON Object from Applescript
My JSON return value from the Applescript for my widget looks like this:
"{\"text\": \"\", \"icon_path\": \"/Users/.../fa-plus.icns\", \"background_color\": \"50,50,50,255\"}"
When the text value is set to an empty string, like above, the widget does not appear. This is a problem because I can't seem to create a widget that has no text but simply an icon that swaps based on the return value of the script. If I set the text value to a space (e.g. "{\"text\": \" \"}"
) the widget expands in width, so this is not a viable solution.
Device information
MacBook Pro 2016 15" w/ Touch Bar running 10.13.6, BTT v. 2.636 (945)