Created
November 28, 2021 22:51
-
-
Save kjaymiller/dad547a6427d7f772140cec526d98cee to your computer and use it in GitHub Desktop.
Popclip Searchlink Extension
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# popclip SearchLink + Multi Actions | |
name: SearchLink | |
actions: | |
- title: SearchLink Copy | |
requirements: [text] | |
icon: search c | |
applescript: do shell script "automator -r -i \"{popclip text}\" ~/Library/Services/SearchLink.workflow|awk '/http/{gsub(/^[ \t]*\"|\"[ \t]*$/,\"\"); print}'|pbcopy" | |
- title: SearchLink Paste | |
requirements: [text, paste] | |
icon: search p | |
applescript: do shell script "automator -r -i \"{popclip text}\" ~/Library/Services/SearchLink.workflow|awk '/http/{gsub(/^[ \t]*\"|\"[ \t]*$/,\"\"); print}'|pbcopy" | |
after: paste | |
- title: Searchlink Open | |
requirements: [text] | |
icon: search o | |
applescript: do shell script "open $(automator -r -i \"{popclip text}\" ~/Library/Services/SearchLink.workflow | grep -o 'https[^ ]*')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment