Automator - csirtgadgets/csirtg GitHub Wiki

Working with OSX Automator

Based on: https://stackoverflow.com/a/36726405

  1. Open Automator and choose Service as the type

  2. Add a "Run Shell Script" action by dragging it to the right pane

  3. Add script:

    open "https://csirtg.io/search?q=$(ruby -rcgi -e 'print CGI.escape $<.read.chomp')"

  4. Save the service as "CSIRTG Search"

  5. Activate the service in System Preferences and optionally assign a keyboard shortcut. Once activated, "CSIRTG Search" will appear in the context menu