Jump to content

vitor

Staff
  • Posts

    8,500
  • Joined

  • Last visited

  • Days Won

    708

Everything posted by vitor

  1. vitor

    Mil

    Here’s the theme I made for myself. Link shorteners cut my name (probably because of the “í” and “ã”), so that is why you’ll see “Unknown” in the name, but I think the important parts of the theme are there — if you notice anything different from the screenshot, please let me know. Download
  2. Usage Add files, series (folders), and streams (URLs) to your watchlist via the Universal Action. Search through and play items from your list via the wlp keyword. ↩: Play. ⌃↩: Open the item’s URL in a web browser. ⌥↩: series: Rescan folder for audiovisual files. stream: Download. Requires Download Media. ⌘↩: Mark as watched without playing. ⇧↩: Add to temporary playlist. Repeat for all desired items then ↩ to play them in order. An unplayed playlist is reset after a few minutes. ⌘Y (or tap ⇧): Quick Look files and streams. Sort your list in different ways with wls. Sorting is temporary and does not affect the main list’s order. Manually edit the list via the wle keyword. A Text View will open for you to reorder and rename at will. Keep the initial six characters and colon together with a title. ⌘↩ to apply the changes. Undo marking an item as watched via the wlu keyword. ↩ to mark not watched and try to recover from the trash. If the item has an origin URL (shown in the subtitle): ⌘↩: Open URL in a web browser. ⌥↩: Copy to the clipboard. ⌘Y (or tap ⇧): Quick Look. Subtitle reference: There are three types of item: file, series, and stream. Each result has its name as the title. The subtitle details information following a template: ≈ (4) 𐄁 22m 32s 𐄁 691M 𐄁 /Some/Path ≈: Indicates item is a stream. file: N/A. series: N/A. stream: Always present. (4): Number of elements. file: N/A. series: Remaining audiovisual files in folder. stream: N/A for single items. Count of all items for playlists. 22m 32s: Running time. file: Running time of file. series: Running time of first audiovisual file in folder. stream: Combined running time of all elements. 691M: Size. file: Size of file. series: Size of first audiovisual file in folder. stream: N/A. /Some/Path: Path. file: Path to file. series: Path to folder. stream: URL. Supported Players All media players are supported, but not all are able to play streams. mpv, IINA, and VLC are directly supported. With those, an item is not marked as watched if playback exits with a non-zero code. Take advantage of that to, for example, control when an item is marked as played and trashed. Disable the trashing behaviour entirely in the Workflow’s Configuration. ⤓ Install on the Alfred Gallery | Source
  3. I think I’m finished (added options to configure without the need for manually editing the file, and support for more browsers). Since I don’t use the service, there’s really not an easy way to test it. Are you interested? This doesn’t really add anything to the script that you’d need, so I can ask for anyone else on the forum, if you prefer.
  4. Update (hopefully the last one you’ll have to care about, for a while). It should now auto‐update using Alleyoop. It also stores your settings in a non‐volatile directory — this means they won’t sync with the rest of the workflow (if you store it on Dropbox), but you won’t have to reenter your preferences every time you update.
  5. That’s it? That’s ridiculous(ly easy). This should really be somewhere more prominent. I don’t even need all the options of that script, I just made a prefsDirScript with #!/bin/bash bundleID=$(/usr/libexec/PlistBuddy -c "Print :bundleid" "info.plist") prefsDir="${HOME}/Library/Application Support/Alfred 2/Workflow Data/${bundleID}" if [[ ! -d "${prefsDir}" ]]; then mkdir "${prefsDir}" fi and I source that.Thank you for your help.
  6. So here’s what I’m trying to do. I have some workflows (including another I’ll share as soon as I can solve this) that need some files (config and others) that should not be written‐over after updates. It is my understanding that you can have your bundle ID serve as the directory in Alfred where to store these files, but I can’t find any simple examples on how to effectively do this. For this specific workflow, I have a file — list.txt — that’s updated (lines appended, delete, modified) with almost every action. It’s already fully working, but in doing options like if [[ this ]]; then rm list.txt elif [[ that ]]; then open list.txt fi these act on the file, on the same directory as the workflow. However, this also means that the file will be deleted whenever you update the workflow. So I’m looking for the way to do it on a file outside of it’s directory, naturally on the directories we already can use to store settings with Alfred workflows.It has to be done in bash (as to be seamlessly integrated with the script), and it should be, preferably, a straightforward process. The problem is I do not know where to begin. Does Alfred have some special variable to access files in that directory, do I have to set it up, what? Thank you in advance.
  7. There’s also an imgur workflow, which may be more in line with what you want.
  8. Do you have a github repo for this? There are some details of my PinAdd workflow that I think would be nice additions to this — configuring without the need to manually alter the script, and support for more browsers (each of them needs a different Applescript way of getting the frontmost tab url). If not, would you mind if I took a crack at it?
  9. I’ve seen that code of yours before (in fact, I’d like to be able to do a variation on it), but it still has a fundamental difference — it needs the terminal, which means it’ll still make you wait, if you do not have it open. Even though I run a lot of commands, I do not like to keep the terminal open at all times. To me, if it’s open it means it’s doing something, which is one of the clues I use while I work. This workflow scratches a specific itch, when I want to run quick commands, but waiting for the terminal to start is annoying.
  10. This was now consolidated into RunCommand, so you should download that instead.
  11. You’re right. I prefer to store it in the workflow’s directory so it syncs, but I can certainly understand the decision to keep it there.
  12. That’s also how I’ve set it up to work in PinAdd. Another advantage of it is that it’s also easier to update, since every time you want to push a new version you simply remove that file from the directory, instead of having to manually remove the key from the script.
  13. When you have two commands (“gh” and “gh_auth”) people will constantly see the auth command when wanting to do the other, which in my view adds some unnecessary visual clutter (seeing as it’s a command that’ll only be run once). I’d make a suggestion, which is similar to what I’ve implemented on PinAdd — make it an action modifier
  14. It can still be seen as a security risk (albeit only in very specific cases). Since it’s saved in plaintext, someone can still snoop around (not to mention it’ll probably be uploaded do Dropbox). Maybe there’s an easy way to do it via OAuth.
  15. Update. Previously this would get your command and run it with the files as arguments at the end. You can now pick where the file arguments should go in the command (this is optional), by using “{}” (original post updated to reflect this information). Thank you. It now outputs a notification by default, with the output of the command. This way it can show a notification when you ask (when using “‐v”, for example), and not when you don’t.
  16. You’re right, I thought I had tested for that. Thank you, it’s now fixed.
  17. Usage Run shell commands without opening a terminal via the cmd keyword. Your shell’s configuration files will be loaded, making your custom aliases, functions, and more available to the environment. Commands execute relative to the frontmost Finder window to allow quick changes on the current working folder. Exit status is shown as a notification and output in a Text View. ↩ Run the command.⌘↩ Run command but do not open output in Text View.⌥↩ Show command history to rerun a command. Use the Universal Action to send files and text as arguments to a command. If the placeholder from the Workflow’s Configuration is present in the text, it will be replaced with your arguments, otherwise they are appended to the end. The same modifiers apply. Separate command histories are created for commands ran with the Keyword or the Universal Action. ↩ Run command.⌘↩ Delete all command histories and saved outputs.⌘Y (or tap ⇧) Quick Look saved output. ⤓ Install on the Alfred Gallery | Source
  18. LastPass runs only in the browser and needs decryption, so it can be a bit tricky, as you’d probably need to communicate with it via the extension. Also, bear in mind that the 1Password integration doesn’t do everything (like copying passwords directly), with reason. I somehow doubt Alfred will integrate with LastPass, at least in the near future, but if it’s possible/feasible, your best bet is to make a request for a workflow.
  19. This workflow is officially deprecated. It was released to the public domain, so I leave the record here if anyone is interested. You can still find the old source on Github. Output info from videos from a plethora of video sources, even when embedded in other pages. Copy a link to your clipboard, run vidur and pick your verbosity level. It’ll output the video’s link with its duration and optionally its title and description. The Universal Action and Hotkey can act on a selected link. The default_verbosity Workflow Environment Variable applies to everything but the List Filter. It must be succint, medium, or verbose.
  20. That's probably why you haven’t noticed (because it’s hidden). If you notice (at least with the original script), if the dock is at the bottom and visible, resizes take that into account, but when it’s at the sides, windows go behind it, which gets very annoying, very fast.
  21. Another update. I followed a different route from the original thinking and ended up opting for using a script that’s called with different parameters, depending on the bookmark being saved with your default privacy setting, or as private. It will allow for easier editing, which also makes it easier to contribute to.
  22. A quick search on the forum reveals http://www.alfredforum.com/topic/173-cloudapp-workflow/?hl=cloudapp
  23. Unfortunately, it still suffers from the same flaw that made me stop using it. The other developer clearly abandoned it, but maybe you’ll want to take on the task of fixing it. basically it does not work properly when the dock is in any position but the bottom. Personally, I use another app for window management, but if you want to take on this bug, you basically would just need to refactor the calculations depending on the dock’s position. I give some details on how you can get the position, on the original repo (https://github.com/jgallen23/layouts/issues/4).
  24. Actually, you can hotlink any file on droplr by appending only “+”.
  25. Usage Edit labels or add and remove tags from files and folders via the Universal Actions. Alternatively, search for files and folders via the label, tag add, and tag del keywords or configure the Hotkeys. ⤓ Install on the Alfred Gallery | Source
×
×
  • Create New...