Jump to content

gingerbeardman

Member
  • Posts

    225
  • Joined

  • Last visited

  • Days Won

    8

Reputation Activity

  1. Thanks
    gingerbeardman reacted to vitor in Screenshots — Search and act on screenshots   
    That request has been made more than once, so I’ll consider it. But no promises yet or ETA.


     
    @LaterTater There’s nothing wrong with that behaviour, it’s working exactly as expected. To copy to the clipboard you have to ⌘↩, as explained in the instructions.
  2. Like
    gingerbeardman got a reaction from vitor in System Settings — Open macOS System Settings Panes   
    Thanks, that's fine, they have started rising to the top as I've been using them.
     
    This is a great source of these deep urls: https://gist.github.com/rmcdongit/f66ff91e0dad78d4d6346a75ded4b751 just in case there are any "missing".
  3. Like
    gingerbeardman got a reaction from vitor in Alfred doesn't show the text cursor in macOS Sonoma if the redesigned text cursor is disabled   
    The workaround I've settled on for this is to make macOS treat the non-retina display as retina, by forcing the Scale to be 2x (rather than 1x).
     
    There are pros and cons to this approach, but it solves many visual problems so I'd say "it works for me". YMMV
     
    https://blog.gingerbeardman.com/2024/01/25/running-modern-macos-on-non-retina-displays/
  4. Like
    gingerbeardman got a reaction from Grug in FSNotes (alternative to nvALT) workflow   
    FSNotes (File System Notes) is modern plain text note taking app, like notational velocity (nvALT) on steroids, for macOS (and iOS).
     
    https://fsnot.es
     
    It respects open formats: plain/text, markdown, rtf, and stores data in the file system.
    You can view, edit, copy data in favourite external editor and see live results in FSNotes.
     
    Workflow allows searching, creation, selection, use of Clipboard, etc.
     
    Alfred Gallery
    https://alfred.app/workflows/gingerbeardman/fsnotes/
    (related thread)
     
    Source code
    https://github.com/gingerbeardman/fsnotes-alfred-workflow/
     
    Screenshots
     
    all options

     
    file system search

  5. Confused
    gingerbeardman reacted to vitor in Remove Quarantine — Delete the quarantine attribute from app bundles and files   
    Updated to 2023.2.
    When using rq, query apps from the Spotlight database to show apps in more locations. Show apps without .app suffix. Show subtitle with full app path. New configuration option to ignore signed and notarised apps when searching. Updated to use /bin/zsh --no-rcs Use JSON instead of XML. General code improvements.

  6. Like
    gingerbeardman reacted to vitor in Calculate Anything   
    Looking again at the output posted by @zeitlings, the JSON is indeed malformed. items should be an array of objects, not an object with a 0 key. arg shouldn’t be set and rerun should be a number, but those won’t stop the results from showing.

    You may be getting more issues than normal because people are getting the message in the debugger but not in Alfred due to the malformed JSON.
  7. Like
    gingerbeardman reacted to deanishe in How to open a random file (from a folder) with specific app?   
    It returns a complete path plus a newline, which is not a valid path.
     
  8. Thanks
    gingerbeardman reacted to vitor in Search Moby Games   
    You should always prefer with input as argv over with input as {query}. You’re escaping too much so some characters won’t be sent correctly.

    Also, you should likely be URL escaping the input text. Something like:
     
    USER_INPUT="${1}" # This assumes with input as argv, ${1} replaces {query} ESCAPED="$(osascript -l JavaScript -e "function run(argv) { return encodeURIComponent(argv[0]) }" "${USER_INPUT}")" RAW=......&title=${ESCAPED}")  
    Long story short: your current approach will work now as you’re typing ASCII but it might break if a user types a special character.
     
    Note that the ; is redundant. You only need that if you have two things on the same line. Unlike JavaScript, where it’s a matter of style, in shell pretty much no one ends all lines with a semicolon.
     
     
    To do that, small trick I use on Short Films:
    Download the images to alfred_workflow_cache (be sure to create the folder: mkdir -p "${alfred_workflow_cache}") Before every download, check if you already have it and use it if you do. Once downloaded, check what’s the smaller of the two dimensions (width or height) then crop it to that to get a perfectly fitting square. This can all be done with sips which ships with macOS. I can get more specific later if you go that route.

     
     
    If the code is working, I don’t really see anything wrong with your approach. There’s a “useless use of echo” and you could be using ' instead of " arounds some parts so you don’t need so many \, but that’s about it. Shell languages are far from the best way to deal with JSON, but considering that limitation you seem to be handling it well. I’d be more concerned with edge cases and the like. A more robust approach would be to use a language which natively supports JSON (note above how I called osascript -l JavaScript) to handle that part.
  9. Thanks
    gingerbeardman reacted to vitor in Clipboard image to data-uri   
    Note that since February Homebrew gets the list of formulae and casks from a JSON, it no longer git pulls the whole repo. Updates are much faster. But yes, I also prefer to do things with as few dependencies as possible.
     
  10. Like
    gingerbeardman reacted to vitor in Where is the Palette?   
    Should’ve appeared by default when updating to Alfred 5.
     
     
    There’s this page we could link to. Would it have helped?
  11. Thanks
    gingerbeardman reacted to vitor in Clipboard image to data-uri   
    Right. I may still be able to help but to give the best answer I need to understand what’s the scope of the request. You want to get the base64 of the image without any dependencies on software which does not ship by default with macOS, correct? That is simpler if you create a temporary image then run the base64 command on it.

    I’ll simplify the code above and show what I mean. Note how it creates the image in the tmp directory.
     
    set imageData to the clipboard as {«class PNGf»}
    set filePath to (POSIX file "/tmp/base64image.png")
     
    set imageFile to open for access filePath with write permission
    write imageData to imageFile
    close access imageFile
     
    Then you connect that to a Zsh Run Script:


    echo "data:image/png;base64,$(base64 --input=/tmp/base64image.png)" | pbcopy rm '/tmp/base64image.png'

    You don’t even need to rm the image if you don’t want, as /tmp is cleaned up on reboots and the AppleScript overwrites the path.
  12. Like
    gingerbeardman got a reaction from vitor in Dente Azul — Toggle bluetooth and paired device connectivity   
    Thanks! Promo site is at http://sparrowsolitaire.com
     
    Or big pinned threads on my social media accounts, I think you found them. Cheers!
  13. Like
    gingerbeardman got a reaction from vitor in Dente Azul — Toggle bluetooth and paired device connectivity   
    Hi Vitor!
     
    Sorry for the delay, I have just released a new video game project so have been busy.
     
    That's exactly what I was looking for, thanks.
  14. Thanks
    gingerbeardman reacted to vitor in Remove Quarantine — Delete the quarantine attribute from app bundles and files   
    Updated to 2022.1.

    Workflow is now distributed via the Alfred Gallery. Download the new version from there or update directly from Alfred.
    New repository. New icon. New About. Add configurable keyword. Remove OneUpdater in favour of Gallery updating.

  15. Thanks
    gingerbeardman reacted to vitor in Copied text from DeepL does not appear in the Clipboard History   
    Alfred is ignoring the text because the DeepL app is marking it as org.nspasteboard.AutoGeneratedType. To have it show up in history, untick the checkbox at Alfred Preferences → Clipboard History → Advanced → Ignore clipboard data marked as Auto Generated.
     
    One could argue the DeepL app shouldn’t be marking the text as org.nspasteboard.AutoGeneratedType, though. It’s an odd choice since the copy is intentional. Maybe it’s not on purpose, they could e.g. be using a library to handle the copy and that does it.
  16. Like
    gingerbeardman got a reaction from Stephen_C in Copied text from DeepL does not appear in the Clipboard History   
    Clipboard Viewer app is part of "Additional Tools for Xcode", at https://developer.apple.com/download/all/?q=clipboard
     
    I thought to check other non-standard ways of copying text into the clipboard, but the ones I have found are not affected. Example copying a generated share link from a Dropbox webpage, shows up fine in Alfred Clipboard History.
     
     
     
  17. Thanks
    gingerbeardman reacted to vitor in FSNotes   
    Yes. The customisations already in place remain, unless you untick the migration box on the bottom left.
     

    Yes, just that.
  18. Like
    gingerbeardman reacted to iandol in FSNotes   
    Thank you @gingerbeardman for the repo and @vitor for the nice updates!!! 😍
  19. Like
    gingerbeardman got a reaction from vitor in FSNotes   
    Ace! Thanks.
     
    Gallery will be a real benefit to users.
  20. Thanks
    gingerbeardman reacted to vitor in FSNotes   
    Live in the Gallery!
     
  21. Like
    gingerbeardman got a reaction from vitor in FSNotes   
    I'll sort out a repo for it soon, no worries. 
     
    Probably best to include it as it is for now if it's easy to transition to a Repo. 
  22. Sad
    gingerbeardman reacted to vitor in FSNotes   
    Disagreed. Different people like different themes and will use different workflows. It’s positive to highlight you’re not limited to one look.
     
    Plus, some workflows are fun to present with certain themes. E.g. Microphone Control and Ignore in Alfred.
     

    Each Gallery page shows one workflow at a time, and within that, the theme is consistent. I don’t think people are going to be confused by that.
  23. Thanks
    gingerbeardman got a reaction from iandol in FSNotes   
    Author: I'm the author of this workflow Alfred Forum: https://www.alfredforum.com/topic/12934-fsnotes-alternative-to-nvalt-workflow/ Main page: https://github.com/glushchenko/fsnotes/wiki/Alfred-Workflow Dependencies: none  
    Screenshot:
     
    it would be much nicer if all screenshots were taken using the default Alfred theme? They're going to be a real mishmash of themes as it is. The below screenshot uses a custom theme.  

  24. Thanks
    gingerbeardman got a reaction from xanimus in Alfred prefs minimum window width too wide for my display   
    That's a different issue, you'll have more luck with a diagnosis/answer if you start your own thread.
     
     
     
  25. Like
    gingerbeardman got a reaction from JJJJ in Restart applications with force if necessary   
    I've updated this:
    fixes for Python 3 excludes app plugins (any app containing one or more plugins would quit but not restart) bump version number to 3.2 https://www.gingerbeardman.com/alfred/
     
×
×
  • Create New...