Automator - csirtgadgets/csirtg GitHub Wiki
Working with OSX Automator
Based on: https://stackoverflow.com/a/36726405
-
Open Automator and choose Service as the type
-
Add a "Run Shell Script" action by dragging it to the right pane
-
Add script:
open "https://csirtg.io/search?q=$(ruby -rcgi -e 'print CGI.escape $<.read.chomp')"
-
Save the service as "CSIRTG Search"
-
Activate the service in System Preferences and optionally assign a keyboard shortcut. Once activated, "CSIRTG Search" will appear in the context menu