Jump to content

jackwayneright

Member
  • Posts

    2
  • Joined

  • Last visited

jackwayneright's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. Hello! I created a workflow that, when the hotkey is pressed, will use the selected text as input, but if nothing is selected, fall back on using the current clipboard as the input. This is accomplished easily enough by passing the selected text to a script and checking if it's empty, and using `pbpaste` if it is. The problem is that with the hotkey node set to use the "Selection in macOS" as the argument, it makes a beeping noise if no text is selected. Is there a way to disable that beeping noise for such a node/workflow? Or, equivalently, is there a way to get the "Selection in macOS" reliably in the same way Alfred does from a script? (Preferably Shell or Python, but I'd make do with any.) Thank you for your time! Alfred 4.6.3 macOS 12.2.1
  2. Hello! I'm attempting to set up a workflow that includes passing a unicode character with a diacritic through a shell script. However, the "Run Script" node in the workflow seems to be converting its input to another representation of the characters which cause issues. In particular, the character being passed into the bash script is when the issue seems to be occurring. More specifically, I'm using a workflow that takes the currently selected Japanese text, and does something with it. In this example, the bash script just re-echos the input, and then the text is searched on Jisho.org (a Japanese-English dictionary site). The character `が` demonstrates the issue. The version which is passed through the bash script changes to another representation of `が` which on Jisho.org is searched as a separated `か` and the ` ゙` (dakuten diacritic). I've attached a simplified workflow below which presents my issue. It includes the action I would like to achieve, as well as a couple other example cases showing that the character seems to be changed on input into the bash script (e.g., setting the character within the bash script works as desired, but setting it within one bash script and passing it to another does not). I'm assuming this question has been answered before, but the answers I found with my various search term attempts did not seem to turn up the answer I was looking for. I apologize in advance for the likely repeat. Any suggestions and/or explanations would be appreciated. Thank you for your time! Google Drive link to workflow: https://drive.google.com/file/d/1YXoz4KWt_4XbTJtrdM4MKJlmSe9rompl/view?usp=sharing Alfred 4.6.3 macOS 12.2.1
×
×
  • Create New...