-
Posts
8,488 -
Joined
-
Last visited
-
Days Won
707
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by vitor
-
-
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:
- You’re sharing the workflow with someone else. You wouldn’t want your personal text to be packaged with the workflow.
- The file you’re saving is large, which increases the size of the workflow and could take up more space in syncing.
-
I know for sure Twitter used to work. But right now it’s so locked down that I wouldn’t be surprised if this is one of the consequences. Can’t really speak as to the others. Your best bet is to search their issue tracker, or ask for an addition (e.g. Loom).
-
Welcome @Crystal Taggart,
This succinct post should get you started. You may need a plugin for the Stream Deck, and then create a short workflow in Alfred where you’ll use the External Trigger connected to a Copy to Clipboard Output (tick the Automatically paste to front most app checkbox) to paste your text.
-
From your description (thank you for being thorough with the details!) the first thing that comes to mind is that you may have a workflow installed which also uses the mail keyword, and are seeing results from that. You can open Alfred and type ?keyword mail to verify.
-
-
5 minutes ago, alfredpanda said:
are these out of scope?
I don’t pick what’s supported, yt-dlp, used by the workflow, does. Whenever you have an issue with a download, the solution is to try to download it from the Terminal with yt-dlp and report the result on their issue tracker.
Downloading anything which requires credentials is out of scope, though.
-
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.
-
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
-
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.
-
Use a shebang in your script and make it executable. That box is essentially the same as the External Script option in Run Scripts and Script Filters.
-
Please try this:
- Delete the workflow.
- Delete ~/Library/Application Support/Alfred/Workflow Data/com.alfredapp.vitor.openai
- Delete ~/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.alfredapp.vitor.openai
- 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).
-
Could you provide a short video with the debugger open? In it, please also make sure to start a new conversation with ⌘↩ so I can see it happen with a clean slate and better see the timings with the actions, to see if I gather the cause.
-
-
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.
- iandol and Textdriven
- 1
- 1
-
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. -
Which folder are you saving to?
-
-
Once you click that you should be in System Preferences → Privacy & Security → Full Disk Access. Click the + on to bottom left and you’ll have a picker to add Alfred.
-
-
47 minutes ago, Cem said:
Alfred 1.2 (220)
You’re using the old version. Download Alfred 5 from the website.
-
I’m unable to reproduce. Could you share the workflow in question, as well as the method in which you’re calling it (not only the code, but also the way in which you’re invoking it, e.g. which app you’re using)?
Would also be useful to know the exact version of Alfred and macOS that you’re on. -
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.
-
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.
-
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.
Help with storing a chunk of text in a workflow, and calling it later
in Workflow Help & Questions
Posted
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!