Skip navigation
Just discovered OSX Automator: attach a keyboard shortcut to run a Python script on highlighted…
0:00 / 0:30

Just discovered OSX Automator: attach a keyboard shortcut to run a Python script on highlighted…

Radamés Ajna

@radamar6.9K followers

Visit on X
303 likesDownloadOriginal post

84,121 views

Just discovered OSX Automator: attach a keyboard shortcut to run a Python script on highlighted text, instantly swapping with LLM magic! Now proofing grammar on-demand with Mistral 8x7B via Hugging Face or Mistral 7B with ollama LocalLLM

11 Comments

Comments from the original post on X (Twitter)

  • Radamés Ajna's profile picture

    @radamar

    here is the code

    46 likes

  • xleven's profile picture

    @xleven_ai

    @huggingface @ollama Nice work! There is an Ollama Extension in Raycast with same functions and smooth UX

    9 likes

  • Radamés Ajna's profile picture

    @radamar

    @xlevenz @huggingface @ollama Cool! I need to check Raycast

    2 likes

  • Fred Bliss's profile picture

    @fblissjr

    @huggingface @ollama Just discovered this post after spending way too long trying to make Raycast extensions work for this same exact purpose. THANK YOU.

    2 likes

  • Radamés Ajna's profile picture

    @radamar

    @huggingface @ollama 🤩 I haven't tried Raycast however, I turned to Automator because of its native access on the OSX. The only place it doesn't work as a keyboard shortcut is inside Gmail textbox. However, you can select the text, right-click -> services -> run automator

    2 likes

  • saurabh mehta's profile picture

    @Saurabhm6

    @huggingface @ollama Thanks a lot for sharing this automator. Can be much helpful in the flow of work. I followed the steps but when I trigger the shortcut, I get an error: error ‘response’ Any idea why this might be happening? Thanks a lot again.

    1 like

  • Steven Natera's profile picture

    @StevenNatera

    @ollama @huggingface A word of caution. Automator is unreliable with some tasks.

    1 like

  • IF's profile picture

    @ImpactFramesX

    @huggingface @ollama win version please :😭

  • Radamés Ajna's profile picture

    @radamar

    @FramesImpact @huggingface @ollama maybe we could try using this ?

    2 likes

  • BLENDER SUSHI 🫶 X - 24/7 Blenderian's profile picture

    @jimmygunawanapp

    @huggingface @ollama I have been doing this with Pythonista keyboard and chatGPT! But good usage of Automator.p and Shortcuts.

  • Radamés Ajna's profile picture

    @radamar

    @huggingface @ollama can you run the command from any app? Automator is nice