Jump to content

vitor

Staff
  • Posts

    8,488
  • Joined

  • Last visited

  • Days Won

    707

Posts posted by vitor

  1. 8 minutes ago, PBerg said:

    I'll be back for more workflow questions once I have figured out the next handy tool I want to build

     

    For sure!

     

    If you haven’t yet, I recommend you check the Getting Started Guide for an interactive tutorial on making workflows. @Stephen_C is also creating a series on Simple Ideas and @Vero is making videos on workflows and features. There are also workflows in the Gallery which are good examples of ideas you can make even without code. Finally, the documentation is quite comprehensive. You can click the (?) in any object to go directly to it.

     

    And we’re here for any questions.

     

    Have a great weekend!

  2. Welcome @PBerg,

     

    Note that the folders indicated by the variables @Stephen_C mentioned still have to be created. In your case, the easiest way would be to use the Write Text File Output with Create any intermediate folders turned on. Then use the File Contents Automation Task to read the file back.

     

    44 minutes ago, PBerg said:

    But I suspect that this is inefficient.

     

    It’s not, that’s how you’re supposed to do it. If you want to save data for later, you have to save it somewhere. The reason you should use one of the folders @Stephen_C mentioned instead of the workflow’s own folder is that by using the latter you’re kind of changing the workflow itself. Which mostly doesn’t matter unless:

    1. You’re sharing the workflow with someone else. You wouldn’t want your personal text to be packaged with the workflow.
    2. The file you’re saving is large, which increases the size of the workflow and could take up more space in syncing.

  3. To add to Stephen’s answer, look also at Run Scripts, which are a way to do it without opening a Terminal. And Script Filters which can run code and output results in Alfred itself, as can the Grid View and Text View.

     

    In other words, yes, Alfred can do it in a myriad of ways. See the Getting Started Guide for an interactive tutorial on making a workflow and check the comprehensive documentation to learn even more.

  4. Don't worry about it, I’ve only been seeing positive reception! Keep ’em coming!

     

    2 hours ago, Stephen_C said:

    I try to think of the posts in terms of what would have helped me when I first nervously dabbled trying to write workflows.

     

    That is so so much the right attitude. Thumbs up.

     

    2 hours ago, Stephen_C said:

    Ideas and comments are welcome—but please don't expect anything too sophisticated!

     

    Any of your workflows which is done without code seems like a perfect candidate for a deconstruction.

     

    And here’re a neat trick. A URL for all of your Simple Ideas posts: https://www.alfredforum.com/search/?&q="Simple ideas%3A"&author=Stephen_C&search_and_or=and&search_in=titles&sortby=relevancy

  5. Funnily enough, I don’t know. Your report was the first one I ever got for this issue. But what I have locally already has a ton of changes from the current release version, so trying to reproduce your issue would be extra hard since it’s effectively a different workflow. So I finished up the changes I was making today, cleaned it up a bit and gave you an early version, thinking that whatever it was might’ve been addresses already. Apparently it was! Deleting the directories was to be extra sure there wasn’t some other interim thing causing the problem (that’s still a possibility). So whatever you were facing ends up no longer mattering, since the new release will be closer to what you have now.

  6. Please try this:

    1. Delete the workflow.
    2. Delete ~/Library/Application Support/Alfred/Workflow Data/com.alfredapp.vitor.openai
    3. Delete ~/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.alfredapp.vitor.openai
    4. Install this version.

    Let me know how you get on. If it still fails, I’ll need the new debugger output and the chat.json file (not the contents, but the actual file).

  7. 3 hours ago, Textdriven said:

    Love the workflow!

     

    Thank you.

     

    3 hours ago, Textdriven said:

    Basically to setup some universal actions that pre-append a command like "summarise this" or "break this into tasks" above the select text before it is submitted?

     

    That is correct.

     

    3 hours ago, Textdriven said:

    Is there an easy way to do this?

     

    Make a new workflow with a Keyword Input and connect it to an Arg and Vars Utility with your custom text plus {query} for the new input from the Keyword. Then connected it to a Call External Trigger Output set to open continue_chat from this workflow.

  8. Alfred’s defined PATH is /opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin. Pyenv is irrelevant unless you’ve symlinked to one of those locations or the workflow uses it. What’s more likely to be causing the issue is you having Python installed via Homebrew and that Python 3.12 has (again) breaking changes.


    And yes, using /usr/bin/python3 is indeed the best way to go about it, to ensure as much consistency as you can.

  9. Here’s a related neat trick. One problem is that sometimes a menu item changes its name depending on something else in the app. For example: in Messages you can see Edit → Tapback Last Message… by default, but if you select a message it changes to Edit → Tapback Message… You can use that difference to your advantage in the workflow to e.g. only make something happen when the right option is available, but sometimes you want activate the menu item regardless of this detail. In this case what you can do is add both as separate Automation Tasks. Because an Automation Task error stops the flow of execution, this means only the active option will get through. You can see this exact example in action in the Tapback Message workflow.

  10. 38 minutes ago, protojordie said:

    so I might take a stab at also saving the Markdown somewhere.

     

    You can already copy the Markdown with ⌃↩.

     

    38 minutes ago, protojordie said:

    Are there any plans to add a configuration for saving chat history

     

    I have ideas for chat history, but it’s unlikely to work exactly as per your description as I want to offer more flexibility than locking a conversation in time.

  11. 7 minutes ago, Cedric said:

    I use Thumbnail navigation for recent screenshots

     

    There is a workflow specifically for screenshots.

     

    5 minutes ago, Cedric said:

    I think browsing visually

     

    It’s not just about browsing, it’s about previewing directly inside Alfred.

     

    3 minutes ago, Cedric said:

    I am a tad worried about future updated to Alfred though

     

    You shouldn’t be, it’s highly unlikely that any update to Alfred will ever break Recently Added. An update to macOS might, but I have zero control over that.

     

    4 minutes ago, Cedric said:

    Any way to get an for more than one fast entries

     

    That has always been possible, and is explained in the configuration itself how you can list the contents of multiple folders. It’s exactly the same method as Recently Added, separating by commas.

     

    8 minutes ago, Cedric said:

    and a choice for a thumbnail vs list presentation of the results

     

    Like I said, if you prefer Recently Added you’re more than welcome to keep using it. But the reason I deprecated that workflow is that for a good while I had been thinking of improving it with previews, and then with the new views I realised that the next version of Recently Added would basically be a repeat of Thumbnail Navigation, so it made more sense to add the fast navigation feature to this one. In other words, the deprecation is the best scenario if you want to keep the list view.

×
×
  • Create New...