vitor

Community Hero
  • Content count

    1,572
  • Joined

  • Last visited

  • Days Won

    87

Everything posted by vitor

  1. Ah, yes, one of the two hard problems in computer science: cache invalidation, naming things, and off-by-one errors. Joking aside, my real reason for posting is to thank @Tony_Et for the great bug report. You really followed the guide! Thank you. If all users followed your example our work here would be incredibly easier.
  2. I seriously doubt there are enough french-speaking users in the forum to justify that.
  3. Not “ruby-ish”, that’s not what I wrote. “Rubbish”, as in “a piece of garbage”.
  4. Some of this can be accomplished via AppleScript, but not everything (well). Safari and Chrome have excellent AppleScript support but other browsers don’t (for the most part), including Firefox (rubbish support) and Opera (had undocumented support, and now seems to not have any). So it should still be possible but you’ll need to fake some key presses, which is less than ideal and prone to errors. So before we continue, any reason Opera is your secondary browser and not another, like Chrome?
  5. Hello and welcome, @patowod, Maybe you’re looking for LabelColor (disclaimer: I wrote it). It’s still supported and will continued to be for the foreseeable future.
  6. Thank you, @tone! Unfortunately it seems like we lost the “fresh” info. Even in the API results, it seems like it always shows as N/A, which is a shame. Certified Freshness status is as useful as the actual rating. Let’s hope we can get that back again. And once more, thank you for the update.
  7. I’ve been noticing I don’t get RottenTomatoes ratings anymore (which are the only reason I use the Workflow). Has anyone else noticed the same? And if yes, are you in or outside the USA?
  8. Update. Load more shell configuration files. Create temporary files differently. New icon. To update, download the latest version (same URL) or wait a few days (15 or less) and it’ll prompt you to on next usage, since it uses OneUpdater.
  9. Provides both a File Action to run shell commands on selected files/directories and a Keyword to run them on the current directory. It will detect your default shell, and if it’s bash, zsh, tcsh, csh, or fish, it’ll load the appropriate startup files and your aliases. For the File Action, use Alfred to pick what you want to run a command on and choose Run command. Alfred’s main window will appear and you simply type the command you want. For the Keyword, type . followed by a command. A space between the period and the command is not necessary. This will run the command on the active Finder window (e.g. .touch this_file). You can also easily chain commands (.cd Desktop && rm that_file). For commands that would benefit from the files not being at the end (like cp and mv), you can use {} as a placeholder for the files. So if you select some files and want to copy them to ~/Desktop/ you’d type cp {} ~/Desktop/. To get the output of the command as Large Type, use ⌘ when actioning it. Download | Source
  10. File action to rename the selected directory or file (preserving the extension). Use Alfred to pick what you want to rename and choose Rename as the action. Alfred’s main window will appear and you type a new name (don’t include the file extension). Download | Source
  11. When you open Alfred, type either a space or '. Then just type for what you want and Alfred will find it.
  12. Update. New icon. To update, download the latest version (same URL) or wait a few days (15 or less) and it’ll prompt you to on next usage, since it uses OneUpdater.
  13. Upload to transfer.sh directly from Alfred. Pick paths to upload via the Upload file File Action. Directories and multiple paths will be zipped prior to upload. You can check your upload progress with ufp. It will auto-refresh the progress. Press ⌘↩ to cancel the transfer. You’ll get notifications of the various phases, with a sound when it’s complete (or canceled). The download URL will be copied to your clipboard. Donwload | Source
  14. Update. New icon and slight code improvements. To update, download the latest version (same URL) or wait a few days (15 or less) and it’ll prompt you to on next usage, since it uses OneUpdater.
  15. Open your current Chrome tab in incognito mode or a new Chrome instance with an empty profile. The latter acts as if you were opening Chrome fro the first time without changing a single setting. That is particularly useful when a setting o plugin is making it difficult to use a page. Call it with ic, and it will open a new incognito window with your current tab. ⌘↩ will also close the tab in your current window. ⌥↩ opens the current tab in a new Chrome instance, and ⌃↩ also closes the tab in the current window. Download | Source
  16. You may also want to try @deanishe’s Searchio! It even does auto-suggestion as you type.
  17. Welcome, @kasiake, While you fill your Powerpack email and @Vero verifies it, lets understand your problem a bit better. This definitively looks like an XY problem. You don’t really seem to want to press a bunch of shortcuts in succession (which is always error prone). You seem to want to duplicate your current Chrome tab. Is that it? There are better (more correct and less error-prone) ways to do it. Fill-in your Powerpack email and expose what is the outcome you really want, and we’ll get you sorted.
  18. The problem for the delay might be in your connection or a temporary blip on their side. I just did the test and adding the card seemed instant. As for the error you’re getting, that isn’t really an error — it’s just that curl’s progress is output to stderr. Nothing to worry about. Since you actually don’t care about seeing the progress, add the --silent flag to the curl command. Also, I suggest you change -f to --fail. Short flags are fine when typing a command but are less useful in a script where comprehension is more important than speed. When you can understand what a command is doing without having to open the man page and check every flag because they consist of a single letter, you have a better experience and might be more inclined to fix bugs if an outsider to the code (and many times you’ll be your own outsider, as you don’t remember your code).
  19. Which is why this is important: I don’t have access to your workflow. I can’t debug what I can’t test.
  20. Don’t. All the quote types were deliberate. It’s not " inside ", it’s " inside "$()". In that instance double quotes don’t cancel each other out, and you need them. If you use single quotes you either break the whole expression (if outer quotes) or break the escaping (if inside quotes). As for your error, you’re giving curl a specific timeout and getting it. Can’t say that is unexpected. Remove the timeout and see what happens. Or try echoing your_text and try it with that in the CLI. Something.
  21. Hello and welcome, @Mehdi, For one, you should be quoting that URL ('https://bot.trellobutler.com/scripts/aaaaa?title={query}'). But apart from that, if you want to be safe and URL-encode every character, keep selected in the Escaping options Backquotes, Double Quotes, Backslashes, and Dollars. In your code do: your_text="$(perl -MURI::Escape -ne 'print uri_escape ($_)' <<< "{query}")" curl -f --connect-timeout 3 "https://bot.trellobutler.com/scripts/aaaaa?title=${your_text}" The first line URL-encodes every character in your {query} in a your_text variable. The second line uses it. That should sort you, but in the future please read the Reporting Problems with Workflows topic and follow it. It gives a nice overview on how to make a report with a better chance of being addressed.
  22. But the open command, which is what you’re running in Alfred, does not work on the CLI, either. That’s my point.
  23. It seems like you’ll need to wait for a reply from the mpv team, though. If it’s no longer working even outside of Alfred, then the issue isn’t Alfred-related.
  24. Open the debugger, and post the output. Also, what happens if you, in the terminal, do mpv "${1}" --args --vid=no? You’re using open -a mpv, but that is unnecessary in this case: the code is just for you and you don’t need it to open the app. The CLI (which you have, since you installed via HB) suffices.
  25. @mdlyen I understood the first time. My answer is the same.