Jump to content

evanfuchs

Member
  • Posts

    100
  • Joined

  • Last visited

  • Days Won

    2

Reputation Activity

  1. Like
    evanfuchs reacted to vitor in Find folders with exact name only   
    Not thoroughly tested and not the cleanest way to do it, but this should work:
     
    readonly escaped="$(sed "s|'|\\\'|g;s|/|:|g" <<< "${1}")" readonly results="$(/usr/bin/mdfind -literal "kMDItemFSName == '${escaped}' && kMDItemContentType == public.folder")" osascript -l JavaScript -e 'function run(argv) { items = argv[0].split("\n").map(arg => { return { title: $(arg).lastPathComponent.js, subtitle: arg, arg: arg, icon: { type: "fileicon", path: arg } } }) return JSON.stringify({ items: items }) }' "${results}"  
    Stick it in a Script Filter with default settings.
  2. Like
    evanfuchs reacted to vitor in Making Python 2 Workflows work on macOS Monterey 12.3 and above   
    Fair. But checking for updates with the original developer is covered in both the GitHub repo and the instructions for reinstalling Python 2, both of which are required reading linked from this thread. Doesn’t seem worth it to repeat it yet again, but I’ll give it a thought.
  3. Like
    evanfuchs reacted to saor47 in List all running applications   
    Here's the JXA script for script filter.
     
  4. Like
    evanfuchs reacted to deanishe in Unexplained "Experimental features in use" Notification?   
    I think you must have turned it on using defaults on the command line. There’s no GUI option or documentation because it’s experimental.
     
    The feature is something Andrew added to support one of Mr Pennyworth's workflows (perhaps the one linked below). Alfred emits notifications ("selected result #1", "selected result #2", etc.) that other apps can subscribe to, so the preview window from Mr Pennyworth's workflow knows what to show.
     
    It's perfectly harmless: Alfred only broadcasts the index of the selected result, not any of its contents.
     
     
     
  5. Like
    evanfuchs got a reaction from JeffreyAutomation in How do I call for the "iCloud Drive" folder?   
    Cool solution. It's a bummer to search the forum and find that perfect workflow solution, only to find out the link is dead.
  6. Like
    evanfuchs reacted to Mr Pennyworth in GIF Search: Workflow for Searching and Browsing GIFs   
    @evanfuchs aha! got it!
    That's such a bad bug!!
    Thanks so much for reporting it
    I fixed it in v0.0.5, download it and give it a go
  7. Thanks
    evanfuchs got a reaction from Mr Pennyworth in GIF Search: Workflow for Searching and Browsing GIFs   
    Sure, sorry about that. The workflow is working as expected, but I am finding an unexpected issue the Clipboard History Viewer related to the workflow.
     
    The typical behavior after triggering the Clipboard History Viewer (for example, using the keyword clipboard), is that RETURN will paste the selected item into the foreground app, while COMMAND-C will copy that item back to the clipboard so you can paste it elsewhere without automatically pasting into the foreground app.
     
    After installing and running this workflow, COMMAND-C puts /Users/<username>/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/mr.pennyworth.gif/selected.gif on the clipboard.
     
    If I run killall AlfredGifBrowser, the issue with Clipboard History Viewer goes away.
     
    I hope I'm explaining it clearly.
     
     
  8. Like
    evanfuchs reacted to vitor in Restoring clipboard contents after "Copy to Clipboard" action   
    Connect two Copy to Clipboard Output, but add a Delay Utility between them (even 0.5 seconds worked, in my tests). On the second Copy to Clipboard Output, have {clipboard:1} instead of {query}.
  9. Like
    evanfuchs got a reaction from dfay in Fuzzy, self-updating list filter workflow template (working in 12.3)   
    That's perfect. Thank you. I didn't know that's how you pass the argument 😬
     
    I had also tried changing the script filter to "with input as query" and passing the file name in the Alfred window, but I got an error either way. This was super helpful.
     
    Thanks
  10. Like
    evanfuchs reacted to Mr Pennyworth in GIF Search: Workflow for Searching and Browsing GIFs   
    Alfred GIF Search
    Download: Gif.Search.alfredworkflow
    Up-to-date README (this post is outdated)

    This workflow lets you search GIFs on Tenor from Alfred.

    Here's an example of searching and inserting a GIF in a google doc:


    Installation
    Download the latest release. In Alfred, run .setup-gif-search.
    Usage
    In Alfred, enter gif keyword followed by search query. Press ↩. Use arrow keys or mouse to browse the GIFs. To copy the selected GIF to clipboard: either ⌘↩ or ⌘-click To drop the GIF into apps that support it: drag from Alfred and drop into that app
    Note

    Firefox and Chrome don't support pasting GIFs from clipboard. That is, if you copy a GIF to clipboard and paste it, it shows up as a static image, not an animated GIF. This is not a bug in this workflow, but rather just the way these browsers have decided to handle GIFs.

    Both Chrome and Firefox support drag-n-drop. If you use either of these browsers, sorry, you gotta use the mouse!
  11. Like
    evanfuchs reacted to Andrew in Possible to chain snippets with key combo inbetween?   
    In a workflow, you can chain as many objects and actions as you need. For example, what you need may looks something like this:
     

     
    The Snippet Trigger responds to typing :test which is connected to a Copy to Clipboard output object. You place your snippet text in this object and configure it to automatically paste.
     
    Adding a Delay Utility (set to something very small, e.g. less than a second) will allow a short amount of time for the underlying app to respond to the paste. The Dispatch Key Combo object will simulate the key presses you like. Just add more delays, key combos, and copy to clipboard objects as you need.
  12. Like
    evanfuchs reacted to rob213 in Evernote Tip: a quick way to open frequently accessed individual Evernote notes using Alfred → Features → Custom WebSearch   
    I have 12,000 + Evernote notes, a few of which I access multiple times a day.
     
    I was looking for a quick way to access those notes in Evernote desktop and configure Alfred to do so.
     
    In Evernote, I right click on the note in the notes list → in the context menu you see Copy Note Link - do NOT choose that option. Instead press the option key and a new menu item will appear called Copy Classic Note Link → click on  Copy Classic Note Link → go to Alfred → Features → Web Search → new custom search → paste the link as the URL, assign title and keyword, etc.
     
    If you want the evernote note to open in the web version of evernote, use copy note link above instead of copy classic note link.
     
    I find this method much faster than going through Evernote search workflows
  13. Like
    evanfuchs reacted to luckman212 in ClipSaver - save & convert images from clipboard history in various formats   
    Latest release: v2.3.5
     
    Hey guys,
     
    Thought I'd share this little workflow. I found myself often needing to dump out the last N clipboard images from Alfred's history to disk. It was tedious before, find the right item, copy it back to the pasteboard, paste into Preview, save as PNG, give it a non-overlapping name, etc. So I created this to make it semi-automatic. Shouldn't need anything special, but please let me know if you run into any trouble.
     
    Feedback welcome! One thing for sure I would like some advice on is whether the Script Filter (Python) could be turned back into a List Comprehension which from what I've read is more efficient. I couldn't figure out how to do that and also dynamically update the database rows (e.g. converting "/" to " / " so that Alfred's word matching would match correctly, picking a nicer generic icon when app name==null etc). @deanishe if you have time I'm sure you know the answer to this...  
     
     

     
    GitHub
    https://github.com/luckman212/alfred_clipsaver_workflow
     
    Download Latest Release:
    https://github.com/luckman212/alfred_clipsaver_workflow/releases/latest/
     
     
  14. Like
    evanfuchs reacted to xgo in "Save as" menu   
    I'm bumping this because I had this exact same thought yesterday and started thinking about implementation options. Amazing to see this has been done before
     
    e.g. in Chrome, all PDFs that I want to download have a save prompt with default location "downloads" – using this shortcut I can now easily download into the needed directory without having to open a finder window and drag-and-drop its icon into the save prompt. "sheet" trigger works flawlessly.
     
    6y thanks, @Tyler Eich!
     
    EDIT: sometimes I seem to get a double entry i.e. the filepath is entered in the cmd-shift-g prompt then entered as file name then saved immediately. I bruteforce fixed this by adding a slight delay before the 'return' key is captured
    tell sheet 1 keystroke parentFolder delay 0.1 keystroke return end tell  
  15. Like
    evanfuchs reacted to robgill in 1Password Feature Stopped Working   
    I recently came across this exact same error after running a CleanMyMac scan, which deleted all meta data for most of my apps, including 1Password.
    I've done this many times before with no issue. But I also recently moved my 1Password Vaults from Dropbox sync to having a 1Password Family Account (meaning I've removed my local vaults).

    This meant, no matter what you do (restart 1Password, restart mac) the meta data files that are needed to tie Alfred and 1Password together are not recreated!
     
    The Fix
    Go to 1Password settings > Advanced > Check the box for "Allow create of vaults outside of 1Password accounts"
    This does then create the necessary meta data and thus ties Alfred back to 1Password, you can unchecked this box again after this process and Alfred will still work with 1Password
     
    Hope that helps someone if you have a similar issue!
  16. Like
    evanfuchs reacted to GuiB in selection in macos + keyword   
    @evanfuchs, yeah nofile.io seems to be down... not sure they will get back, but here is what I think are the 2 last scripts from my posts above.
     
    My answer regarding @Jasondm007 's script (using AppleScript): https://d.pr/f/2yFEeJ
     
    My other script (using Bash): https://d.pr/f/yLrWRS
     
    Hope this help!
  17. Like
    evanfuchs reacted to xilopaint in Make PopClip Appear   
    Hey, I've just built it!
     
    https://jmp.sh/osn6dHr
  18. Like
    evanfuchs reacted to ibnuh in Character & Word Counter Workflow   
    Github Repo: https://github.com/ibnuh/alfred-character-counter-workflow
     

     
    Character & Word Counter for Alfred
    An Alfred Workflow that count character & word for you
     
    Installation
    Download from Release 1.0
    Usage
    Keyword: cw
    Development
    Clone the repository Open your favourite terminal
    composer install Credits
    Icons by flaticon.com PHP helper class for Alfred Workflows by joetannenbaum/alfred-workflow
  19. Like
    evanfuchs got a reaction from erusev in Is it possible to set multiple hotkeys?   
    I don't think this can be done within settings, but two workarounds:
     
    - If you have Keyboard Maestro it's simple to assign a "hot key trigger" (whatever key combo you want to use for Alfred) to a macro that simulates the keystroke that is already set in Alfred. For example, you can tell KM to fire command-space when you press x and it will show Alfred (if you have the Alfred Trigger set to command-space in settings)
     
    - Another solution would be to set up a Hotkey in Alfred that simulates a key combo using AppleScript. Like this to show Alfred :
     
    on alfred_script(q)    tell application "System Events" to keystroke {Space} using {command down} end alfred_script Not sure if there are any downsides, like delay or conflicts, to doing it internally with Alfred using the Hotkey+AppleScript.
  20. Like
    evanfuchs reacted to deanishe in How do I call for the "iCloud Drive" folder?   
    Can you not upload your workflow somewhere more permanent?
     
    Expired links are an ongoing problem on the forum.
     
    Folks with the same problem/question come along later, find just the thing they're looking for, but it's gone because whoever posted it only uploaded it to some transitory service.
  21. Thanks
    evanfuchs got a reaction from Bhishan in [SOLVED] How to write an Alfred workflow to "go to bottom of GitHub page and click Commit Changes" button ?   
    I use a web-based software that is all button clicks with no keyboard shortcuts. Switching back and forth from mouse to keyboard drives me nuts. If the button is visible on the page, Keyboard Maestro's "Click at found image" is good for this sort of thing.
  22. Like
    evanfuchs reacted to dfay in Problem with Alfred not using Alfred scope on Folder file filter   
    Just add the tag alfred:ignore to the file or folder - works for me anyway.
  23. Like
    evanfuchs reacted to dfay in Fuzzy, self-updating list filter workflow template (working in 12.3)   
    # fuzzylist
    Fuzzy, self-updating list filter workflow for Alfred 3 & 4
    This is a workflow template - it does nothing as is.
     
    ## Usage:
    - create a csv file like you would for an Alfred List Filter, with an optional fourth field containing the path to an icon file for that result.
    - name the file *list.csv* and add it to the workflow directory
    On the initial run, the workflow will create a file list.json for output to the fuzzy search.  If list.csv is modified, it will update list.json .  
     
    ## Credits
    - uses fuzzy.py by @deanishe - https://github.com/deanishe/alfred-fuzzy
     
    ## Download
     
    workflow at https://github.com/derickfay/fuzzylist/blob/master/Fuzzy List Filter.alfredworkflow (v. 0.3 as of 2022-03-30)
     
    ## Working on 12.3
     
    v. 0.3 now uses Python 3 and works on MacOS 12.3
  24. Like
    evanfuchs reacted to vitor in If no {query} do X, if {query} do Y   
    There you go. The trick is to make the argument optional in the Keyword and then have two Filters, each connected to a different address. The first only fires if {query} is equal to nothing, and the second if it is not equal to nothing (i.e. it is equal to something).
     

  25. Like
    evanfuchs reacted to GuiB in Funnel (a variant of the Pipe workflow)   
    Not without touching the code, but here I made it works for you. However, note that this would get reverted if you update to a newer @ctwise update if he don't make the change to his workflow.
     
    In short, in "filters.json" change "perl -nle" to "perl -ne" for the "lowercase" and "uppercase" actions. Change line 79 (print $_, "\n";)  in the file "titlecase.pl" to  "print $_;" and line 37 ($line =~ s/^([ \t]*)(\d+\. |[\*\+\-] )?\s*(.*)/${1}${3}\n\n/;) in the file "bulletlist.pl" to "$line =~ s/^([ \t]*)(\d+\. |[\*\+\-] )?\s*(.*)/${1}${3}/;"
     
    Download: https://nofile.io/f/B3kpSz6Pxom/Funnel.alfredworkflow
×
×
  • Create New...