Jump to content

zeitlings

Member
  • Posts

    168
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by zeitlings

  1. Sure! The download link now works from all servers I've tested. https://cachefly.alfredapp.com/ always results in 404 Not Found - nginx (which is probably intended?), and https://alfredapp.com works fine.
  2. Confirmed. When switching servers on a VPN, sometimes the download works, sometimes it does not. (And without VPN it doesn't work for me)
  3. I mean this window here, where only the button "Reinstall Tasks" was visible instead of "Update Tasks". What I wanted to point out is that it didn't show me that an update was available. I only mention it in case this could be an indicator of a problem with the propagation of the updates. Maybe it is nothing and they would have appeared sooner or later πŸ˜„
  4. Ah, that is because of the newish Regex struct that Apple introduced and unfortunately requires macOS 13.0+ I'll check how feasible it is to downgrade or to add support for earlier versions.
  5. Nice! FYI, I had to click on "Reinstall Tasks" before they showed up in the Extras section. Before that, the Modal said "Automation Tasks are up to date". Is this the intended behavior, or should there be a hint that new stuff is available?
  6. Quill | Text Processing Utility Quill is a text processing utility for automation. Currently, 87 commands are available, many of which can be combined to achieve more complex modifications. Usage Note The workflow has five entry points. When... Using the keyword (default: v), the clipboard is processed. Using the main Universal Action, the text that is passed to it is processed. Using the main shortcut (default: βŒƒ+βŒ₯+⌘+#), the text of your selection in macOS is processed. Using custom shortcuts, the text of your selection in macOS is processed. Using custom Universal Actions, the text that is passed to them is processed. When using the main shortcut, the transformed text is always pasted to the frontmost application. Whether the transformed text will be pasted when using the other entry points depends on your choice in the Workflow Configuration, or on a case-by-case basis for your custom implementations. Hold ⌘ on the main Universal Action to ensure that the transformation result is just copied to the clipboard. When you use the keyword or one of the main entry points, you will always be presented with all available transforms. These are filtered as you begin typing. Setting up custom entry points allows you to directly invoke the commands you want (see Automation). Find all available commands and the full documentation on Github. Quill in Action Dynamic Commands Remove Lines Containing Insensitive... Keep Lines Containing Insensitive... Replace occurrences of... with... Remove lines containing... Keep lines containing... Prepend... Wrap in... Remove... Bonus: The commands Replace and Remove accept regular expressions. Static Commands Expand to see all available static commands Make List Shift Left Title Case Remove List Shift Right URL Encoded URL Decoded Extract URLs Remove Quotes LaTeX Encoded LaTeX Decoded Romanize Text Extract Dates Base64 Encode Base64 Decode Markdown to RTF Markdown to HTML Increment Number Lowercase Letters Uppercase Letters Extract Addresses Word Segmentation Remove All Numbers Reverse Line Order " Wrap in Quotes " `Wrap in Backticks` Normalize Diacritics LaTeX Encoded (full) LaTeX Decoded (full) Escape Double Quotes ( Wrap in Brackets ) Extract Phone Numbers Fix File Name (Smart) Smart Quotation Marks Fix Letterspaced Words Trim Leading Whitespace Extract Email Addresses Sort by count ascending Fix Umlauts (Diaeresis) Repeat with Last Command Trim Trailing Whitespace Sort by count descending Straight Quotation Marks ' Wrap in Single Quotes ' < Wrap in Angle Brackets > { Wrap in Curly Brackets } Remove Leading Line Numbers [ Wrap in Square Brackets ] Remove Whitespace Characters Escape Whitespace Characters Romanize Text (No Diacritics) Sort alphabetically ascending Remove Newlines (Line Endings) Convert URLs to Markdown Links Sort alphabetically descending Remove All Whitespace Characters Replace Newlines with Whitespace Remove Multiple Newline Characters Initial caps of words (capitalize) Replace Underscores with Whitespace Trim Leading and Trailing Whitespace Remove Duplicate Lines (ignore case) Remove Multiple Whitespace Characters Remove Duplicate Lines (literal compare) Remove Duplicate Lines (ignore diacritics) Remove Duplicate Lines (ignore whitespace) Replace Dashes and Hyphens with Whitespace Fix words broken by end-of-line hyphenation NFD - Normalization Form Canonical Composition Remove Duplicate Lines (ignore diacritics and case) NFKD - Normalization Form Compatibility Decomposition Replace Dashes, Hyphens and Underscores with Whitespace Remove Duplicate Lines (ignore diacritics, case and whitespace) NFC - Normalization Form Canonical Decomposition + Canonical Composition NFKC - Normalization Form Compatibility Decomposition + Canonical Composition
  7. Looks like telegram-cli is trying to dynamically link lua or some lua library. The error means that the library was not loaded because it could not be found in any of the locations/ paths the linker would expect it to be. It tried all these locations and then gave up: '/usr/local/opt/lua/lib/liblua.5.3.dylib' (no such file) '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/lua/lib/liblua.5.3.dylib' (no such file) '/usr/local/opt/lua/lib/liblua.5.3.dylib' (no such file) '/usr/local/lib/liblua.5.3.dylib' (no such file) '/usr/lib/liblua.5.3.dylib' (no such file, not in dyld cache) '/usr/local/Cellar/lua/5.4.4_1/lib/liblua.5.3.dylib' (no such file) '/System/Volumes/Preboot/Cryptexes/OS/usr/local/Cellar/lua/5.4.4_1/lib/liblua.5.3.dylib' (no such file) '/usr/local/Cellar/lua/5.4.4_1/lib/liblua.5.3.dylib' (no such file) 'usr/local/lib/liblua.5.3.dylib' (no such file), '/usr/lib/liblua.5.3.dylib' (no such file, not in dyld cache) Perhaps you have to install lua? brew install lua@5.3 If it is installed, perhaps there is a way to add its path to the lookup contingent somehow. Maybe it is as simple as copy-pasting that library into the same folder where the executable is (cf. the Soulver Core workflow where this seems to work fine). I ran into these linking issues once or twice before but never had the patience to really figure them out. Good luck πŸ˜…
  8. That being said, I think some improvements would still be nice. - [Like having *renditions* in links](https://italics.ignor.ed) - Supporting footnotes[^1]. ... [^1]: Or at least to make sure this syntax doesn't produce unexpected results. - Some way to make ==highlights== - Or better yet, to support Admonition Panels to draw special attention to something in the documentation: > **Note** > This is a note > **Warning** > This is a warning
  9. Interesting! Alfred seems to cache the images on disk though: ~/Library/Application Support/Alfred/Databases/clipboard.alfdb.data/399627828244ea16ec127a51c3617aa532565270.tiff. I suppose all that is needed is for the file path to be exposed from the clipboard history, then you could push it to the buffer, copy it, or act on it through the Universal Action view.
  10. GIF from Video The workflow allows you to convert video of popular formats to animated GIFs. To do this, it uses ffmpeg as a dependency. Usage Note Either send a video to the workflow's File Action or invoke the workflow using the keyword and search for the video file you want to convert. Then select the image size you want the resulting GIF to have from the list to start the conversion. You can also specify the desired number of frames per second (FPS) in the workflow configuration to further influence the size of the exported file.
  11. Via the pointers Vitor gave elsewhere: Keyboard Brightness Adjust the keyboard brightness either by using the keyword or by setting up custom shortcuts. When using the keyword type > to increase the brightness type < to decrease the brightness
  12. Have you checked if it is a sandbox thing that has to be (and can be) set to expose events to the system? Perhaps there's also a difference when trying to build it via SPM vs. Xcode. Why that is, I don't know, but I had different behaviours before. The script version works fast and stable enough for me at the moment πŸ€·β€β™‚οΈ. I'll make it available as a workflow for now, at least until your replacement is ready.
  13. Why isn't this a proper workflow yet? This is great πŸ˜„. I've been looking for one that controls keyboard brightness myself a while ago. I'll whip one up real quick.
  14. v1.2.0 Added File Action utility to get bundle identifiers from apps Added useful failure messages Added configurable keyword Added more default options Added new icon Updated documentation
  15. Not an automation task and I'm not sure how you would use it in the, I assume, Label Color Tag workflow, but you could get the tags like this: mdfind -onlyin ~/Documents "kMDItemUserTags=*" | xargs -I{} mdls -name kMDItemUserTags {} | sed -e 's/kMDItemUserTags = (//; s/)//' -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' -e '/^$/d' | tr -d ',"' | sort | uniq Depending on how many tagged files you have on your system, this may take a while. To search the entire filesystem, you can replace ~/Documents with just ~, which could take quite a long while. To have a continuous stream of (unfiltered) tags, you can try this in the terminal to make sure that it works: mdfind -onlyin ~ "kMDItemUserTags=*" | xargs -I{} mdls -name kMDItemUserTags {} | sed -e 's/kMDItemUserTags = (//; s/)//' -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' -e '/^$/d' -e 's/\"//g' -e 's/\,//' Press ctrl+C to stop the process.
  16. There’s no macOS API to retrieve all your custom tags. While this is true, I think I still found a decent way to make autosuggest happen using the mdfind and mdls commands. mdfind -onlyin ~/PATH/TO/SOURCE "kMDItemUserTags=PREFIX*" mdls -name kMDItemUserTags "$FILE_PATH" @vitor I am uploading a version of your workflow where I have been playing with this concept. I'm sure I haven't tested all possible scenarios and a lot could be improved with caching, but it works pretty well so far πŸ€—. https://bashupload.com/0_G9I/uzu8e.alfredworkflow
  17. The filetype refers to the Uniform Type Identifier of a given file. "Desktop", for example, has the UTType public.folder. Some file main.swift has the UTType public.swift-source, etc. MacOS will bring up a generic icon associated with that "filetype", which should be fast. You can look up UTTypes in the Terminal if you'd like: mdls -name kMDItemContentType -raw ~/Desktop
  18. Perhaps there is an option... You could recursively traverse the entire file system and collect all the tags that way πŸ˜„
  19. Hey, two suggestions for the configuration builder: Drag-and-Drop to reorder the fields (please) Add option-sets as a new base type What I have in mind is very similar to "Popup Selection". You can define a set of items, but instead of allowing only one of the options to be selected, all options can be added as needed. What can be added is predefined, which prevents the user from passing incorrect values to the workflow. Take, for example, the language options in the OCR workflow. Instead of copying and pasting "es-ES, pt-BR, zh-Hans", the NSTokenField would autocomplete to the appropriate option (based on the item label).
  20. I find it useful, so much so that I just recreated it, too πŸ˜…
  21. New File The workflow does something very simple, it allows you to quickly create new files in the Finder. If, like me, you know that awkward dance you sometimes have to do, just to get a new text, source, or bib file, you might like this one. β€£ Download on Github β—‚ Usage Note If the post-haste behavior is enabled, new files are created the same way as folders are when you use the shortcut (default: βŒ₯+⇧+N). Otherwise you will be prompted with the input mask where you can configure the file name and type. You can also configure the default extension for new files. The workflow will pick up on your location in the Finder and create the new file there. If you use the keyword, the most recently used Finder window will be selected as the destination. If no Finder window is currently open, the file will be created in the configurable fallback location. Modifiers Hold ⌘ to view the full file path. Hold ⌘+⇧ before hitting enter to enforce creating the file with clipboard contents. Hold βŒ₯+⇧ before hitting enter to enforce creating the file without clipboard contents. Bonus: In addition to all plain-text type files, the workflow can also quickly create docx, doc, odt, rtf and rtfd files for you. Configuration The Fallback Location will be used when activating the workflow with the keyword, but no Finder window is currently open. Otherwise the most recently used Finder window is used as destination. If the post-haste behavior is disabled, the shortcut will also prompt you with the input mask. If the option to create new files with the contents of the clipboard is disabled, you can still choose to create new files with the clipboard contents by using the input mask and enabling the correlating modifier. Similarly, you can opt out on a per-file basis.
  22. Hey @TomBenz, fixed in v1.1.0! And a few more changes: v1.1.0 Fixed the displayname of folders containing a dot being cut off Added generic icon for PDF documents Improved fuzzy search Disabled the option to move items if the list is filtered
  23. This time I wanted to get a bit more familiar with (zsh flavored) shell scripting. The result is Favorites, the spiritual successor of Faves, which was last maintained by @Tyler Eich if I'm not mistaken. Notwithstanding the fact that the successor still works well, this workflow is written 100% in shell and does not require Python 2.7 to be installed. I did some testing, but there might still be some bugs hiding. If you catch them, please bring them here πŸ˜„ β€£ Download β—‚ Favorites Add files and folders to your list of favorites by using the workflow’s Universal Action. Quickly find them again by activating the workflow with the Keyword (default: fav) or by setting a hotkey of your choice. Usage Hints Press cmd+O or enter to open a file or folder. Add items with the workflow’s Universal Action. Modifiers: ctrl: Show full Path cmd: Reveal in Finder opt: Browse in Alfred cmd+shift: Move up opt+shift: Move down fn: Remove from Favorites shift or cmd+Y: Quicklook Preview Special Inputs Type :fav to open the list of favorites in your default text editor
  24. It's true, the increase in file size can be significant. I did some comparisons with DEVONthink's OCR for your usual text-based PDF documents, which uses Abbyy's engine in the background. In some cases, I was able to get better results in terms of file size with the workflow, so I guess it can hardly be avoided. Abbyy's in-house application can export PDFs by applying MCR compression to the images, which is great and would be awesome to have access to. But that goes way beyond what I had in mind for the workflow πŸ˜‚. What I find interesting is that the screenshots most likely don't have any previous text embedded in them, which should allow for a more efficient way to create the new PDF pages, and that the file size still escalates as it does. There is a difference between real-world image dimensions and device-specific metrics. Perhaps what looks like a rather modest screenshot could be a 4K ∞-DPI monstrosity? Image compression is its own subgenre, I suppose, and another rabbit hole to get lost in for sure. Maybe I'll look into it sometime in a moment of muse. You may want to take a look at @xilopaint's Alfred PDF Tools to reduce the pixel density of your document or to scale the images down before attempting the OCR. For really large documents, however, I would recommend to use, and I myself will continue use, the professional tools.
×
×
  • Create New...