Jump to content

willf

Member
  • Posts

    5
  • Joined

  • Last visited

Everything posted by willf

  1. ``` export PATH=/opt/homebrew/bin:/usr/local/bin:$PATH export SCRIPTDIR=$HOME/projects/alfred-scripts export PYTHONPATH=$SCRIPTDIR/dist python3 $SCRIPTDIR/upper.py --clipboard ```
  2. Oh, yes... that is much better. Thank you @deanishe. The script inside the workflow now looks like this (assumes Homebrew) ``` export PATH=/opt/homebrew/bin:/usr/local/bin:$PATH export SCRIPTDIR=$HOME/projects/alfred-scripts export PYTHONPATH=$SCRIPTDIR/dist python3 -m pip install --target $PYTHONPATH clipboard --exists-action a python3 $SCRIPTDIR/upper.py --clipboard ``` Updates made to the [Readme](https://github.com/willf/alfred-scripts/blob/main/README.md)
  3. My ⌘C and ⌘V errors are quite humorous! Hilarious even (now corrected in Readme) I'll try the other suggestions too, and follow up.
  4. After much pain, I figured out how to write Alfred workflows in Python which uses the clipboard to transform text, for, for example, reformatting a markdown table. You can check out my repository for instructions and examples: https://github.com/willf/alfred-scripts Feel free to suggest additional scripts! Or tell me an even better way to do it.
×
×
  • Create New...