Jump to content

csjaugustus

Member
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

csjaugustus's Achievements

Helping Hand

Helping Hand (3/5)

1

Reputation

  1. If you press enter and it adds a space and does nothing else, it means that this keyword trigger requires an argument.
  2. I am currently using the amazing Alfred Gallery • Workflows • Note Taker workflow. I have one minor issue, however. The default behaviour is that when a note is open, CMD + Enter need to be pressed in order to save the note. Would it be possible to change the behaviour so that the notes "auto-save"? For example, when clicking away or closing the popup via Esc key, the note automatically saves. How would I be able to achieve this? I believe this would quite significantly improve the workflow, because in most cases there would be no reason not to save a note. Most of the time this behaviour leads to unsaved files and potentially loss of data. Thank you very much in advance!
  3. That totally solved it. Thanks a lot for your detailed explanation!
  4. Hi vitor, thanks for the prompt and helpful reply. I've tried both of your suggestions: 1) Manually creating `my_script.py` under the workflow directory, then navigating to the workflow directory, doing `chmod +x my_script.py` in the terminal, and then triggering the Text View again. Still the same permissions error. 2) Creating `my_script.py` via the Text View object itself, clicking "Create", and then triggering the Text View object. Still the same permissions error. The only way I got it to work is by create a file with no extension, say `my_script` via Text View "Create". Then I open the created file and write `#!/usr/bin/python3` in the first line, followed by whatever my Python script has. This time triggering the Text View gives no permissions error. It's a viable workaround but I do feel like it's a hassle not being able to work with an external script. Have you tried it on your machine? Not sure if it's a problem on my end. Thanks.
  5. Hi there! I am trying to make an interactive Text View, sort of like the ChatGPT/Dall-E workflow, except I'm trying to use a Python script instead of JS. I've tried setting in the Text View configuration Source > Script: python_script.py (it can open normally when I click open), but it always throws a permissions error (as attached). I've tried reading the docs on Text View and it doesn't say I can't use Python. It merely says that the output of the script has to be in the specified JSON format. And I've used Python for Script Filter objects before, outputting in the required JSON format, and having it work perfectly. I'm just not sure what I'm getting wrong with Text View and there isn't a lot of sample workflows at the moment. Any ideas how I could achieve it? Does Text View accept Python scripts, and if so what might I be doing wrongly? Additional info regarding the script: It's a really simple ask and answer script. You can think of it as something like: Guess a number > User guesses a number > if correct say correct, else keep reprompting. It's not important for now since I'm just trying to figure out the basics of the Text View object. Any help would be greatly appreciated. Please do let me know if you need more info. Thanks in advance!
×
×
  • Create New...