From 8ac883cb21213c3015bc36916c1404f9ebf11aae Mon Sep 17 00:00:00 2001 From: "Mr. Pennyworth" Date: Thu, 3 Jun 2021 08:49:53 +0530 Subject: [PATCH] Use Alfred's "Open URL" action for pin and annotate Big Sur's `open -g ` doesn't do any URL encoding. The one on Catalina does. As a consequence, the following works on Catalina, but not on Big Sur: open -g "cleanshot://share-extension-pin?filepath=/path/with spaces.png" Given that the only reason to not use Alfred's bulit-in "Open URL" action in the first place was because it has weird behavior with "show/hide desktop icons", it makes sense to just use that action for the pin/annotate cases. --- info.plist | 50 +++++++++++++++++++++++--------------------------- 1 file changed, 23 insertions(+), 27 deletions(-) diff --git a/info.plist b/info.plist index 65b92b4..ec3919a 100644 --- a/info.plist +++ b/info.plist @@ -75,7 +75,7 @@ destinationuid - A3937EC6-8CC7-42A1-AD6E-FDA4FC5B73F4 + 28F2FE1A-CFFB-485B-89F2-28C683D2ECD1 modifiers 0 modifiersubtext @@ -101,7 +101,7 @@ destinationuid - A3937EC6-8CC7-42A1-AD6E-FDA4FC5B73F4 + 28F2FE1A-CFFB-485B-89F2-28C683D2ECD1 modifiers 0 modifiersubtext @@ -320,29 +320,6 @@ version 1 - - config - - concurrently - - escaping - 102 - script - open "cleanshot://$action?filepath=$1" - scriptargtype - 1 - scriptfile - - type - 0 - - type - alfred.workflow.action.script - uid - A3937EC6-8CC7-42A1-AD6E-FDA4FC5B73F4 - version - 2 - config @@ -449,6 +426,25 @@ open -g "cleanshot://$1" version 2 + + config + + browser + + spaces + + url + cleanshot://{var:action}?filepath={query} + utf8 + + + type + alfred.workflow.action.openurl + uid + 28F2FE1A-CFFB-485B-89F2-28C683D2ECD1 + version + 1 + config @@ -708,7 +704,7 @@ open -g "cleanshot://$1" ypos 225 - A3937EC6-8CC7-42A1-AD6E-FDA4FC5B73F4 + 28F2FE1A-CFFB-485B-89F2-28C683D2ECD1 xpos 735 @@ -733,7 +729,7 @@ open -g "cleanshot://$1" variablesdontexport version - 0.0.4 + 0.0.5 webaddress https://github.com/mr-pennyworth/alfred-cleanshot