Jump to content

dfay

Member
  • Posts

    1,054
  • Joined

  • Last visited

  • Days Won

    61

Reputation Activity

  1. Like
    dfay got a reaction from sepulchra in [Alfred 5.5] QuickPad – scratchpad, toggled with one hotkey   
    Is it possible to make it persist and receive text from Alfred's clipboard history / snippet viewer?
    This may need to be a request to @Andrew .... thanks!
  2. Like
    dfay got a reaction from devalias in Browser (SafarI) snippets and Universal Actions   
    Get the current URL as a URL, Page Title or Markdown link.
     
    There are three snippets which paste immediately in the active app, and three Universal Action triggers which will copy to the clipboard when invoked on a URL.
     
    https://www.dropbox.com/s/dl/wisja3ppi2g31aw/Browser snippets.alfredworkflow
     
    Originally based on https://www.asianefficiency.com/technology/save-time-with-expert-level-textexpander-snippets/
  3. Like
    dfay got a reaction from roosterboy in Finder scripts (including opening in a single window)   
    This is a workflow I've cobbled together from various sources, notably some modifications to https://github.com/NapoleonWils0n/bashfinder , which is actually a bash front end for a lot of AppleScript.
     
    It contains the following commands:
     
    fo - open a folder in the frontmost Finder window (also available as a File Action)
    fo:i - open a folder in the frontmost Finder window with Icon view (also available as a File Action)
    fo:c - open a folder in the frontmost Finder window with Column view (also available as a File Action)
    fo:l - open a folder in the frontmost Finder window with List view (also available as a File Action)
    all - open "All My Files" (Sierra) or "Recents" (High Sierra and later) in the frontmost Finder window - this uses a Key Combo action ⌘⇧F
    icloud - open iCloud Drive in the frontmost Finder window - this uses a Key Combo action ⌘⇧I
    fat - choose and open an existing tab or window
     
    rf - open a recent folder in the frontmost Finder window
    fi - set frontmost Finder window to Icon view
    fc - Set frontmost Finder window to Column view
    fl - Set frontmost Finder window to List view
    fg - Set frontmost Finder window to Gallery view (i.e. icon view with big icons and a dark background - this is my own take on a Gallery view, which predated the official one introduced in Mojave)
    fw - Close frontmost window and reopen active tab (i.e. close all tabs except the active one)
    merge - Merge All Windows (same as menu command)
    fcfix - set filename column width to 400
    clip - show the Finder clipboard (I bet you didn't know there was such a thing....)
     
    There is a single environment variable: 
    openInNewTab
    set it to 0 to open in the frontmost window (replacing the existing contents) or 1 (the default setting) to open in a new tab in the frontmost window
     
    By using fo and its variants, you can effectively have Alfred open folders in a single window as requested here: 
    https://www.alfredforum.com/topic/11393-opening-folders-in-the-same-finder-window/?do=findComment&comment=59570
    and here:
    https://www.alfredforum.com/topic/11327-any-way-search-open-a-folder-in-same-finder-window/?tab=comments#comment-59276
     
    v.0.5 (2019-06-08)
    Added fat keyword (was going to use ft but it was constantly confused with FaceTime)
     
    v.0.4 (2018-08-06)
    Added icloud and all keywords
     
    v.0.3 (2018-04-08)
    Added file actions
    Added rf and fw keywords
     
    v.0.2 (2018-04-06)
    Added openInNewTab
     
    Download:
    https://www.dropbox.com/s/u1bchxchlm4c1q3/Finder scripts.alfredworkflow?dl=0
     
     
     
  4. Like
    dfay got a reaction from iApple in RPN calculator   
    Sorry - I hadn't changed the repo to be public - it is now.
  5. Like
    dfay got a reaction from ss62 in Is it possible to have Alfred open a file/folder in the *current* front-most Finder window?   
    See this workflow: 
     
  6. Like
    dfay got a reaction from pseudometa in Fuzzy filtering   
    Please allow fuzzy search when "Alfred Filters Results" is turned on in a Script Filter.  Thanks.
  7. Like
    dfay got a reaction from dterranova in A little baffled by Alfred Remote   
    I saw comments like this in a couple of the reviews as well.  Here are the kinds of scenarios I've been using (in the few days).
     
    1st is with dictation as I described in another post - you can open stuff on your Mac and interact with it quite well from a distance this way.  I'd been working with dictation on the Mac a bit over the past few months and Alfred Remote is a great complement to it for hands-free use.
     
    2nd is for "across the room" type tasks for which existing remote solutions don't exist or aren't adequate.  I wrote the Aperture Remote workflow to be able to triage photos (i.e. give a preliminary rating / flag for future editing / printing, keepers vs. trash, etc.) from a distance.  (On the other hand, I'm not going to give up using Keynote's built-in remote since that offers a lot of facilities, notably presenter notes, that can't be implemented in Alfred Remote as it stands).  Also "now playing" for apps (like Radium) which don't provide this facility in a large screen format.  I'm also working on a workflow to open Safari in full-screen (couldn't get Chrome's kiosk mode automated....may try Plainview instead, too) for use with Hootfeed.  And I want to write a remote for Skim's presentation mode, ideally one that would switch to Skim in presentation mode and turn on mirroring, then allow me to turn off mirroring and switch back to Keynote.  (I regularly teach in large lecture halls where I prefer to be able to leave the podium, so this is quite appealing).
     
    3rd is one I didn't expect but which I found myself using a lot.  I have limited desk real estate at work and end up with my laptop in front of my keyboard in front of my desktop.  I found using the desktop with the trackpad at my right hand and Alfred Remote at the left a lot easier than using the trackpad alone (i.e. for a lot of the same situations where I'd normally use Alfred at the keyboard rather than a mouse-based operation).  This a scenario where the desktop is primarily used for reading, listening, watching, and the real work is getting done on the laptop.
     
    --Derick
  8. Like
    dfay got a reaction from Terry T. in Case Converter (including Title Case) - now working on MacOS 12.3   
    Updated March 26, 2022 to use Python 3 for MacOS 12.3 
     
    Now featuring Universal Action triggers and hotkeys for the following five actions:
     
    Uppercase
    Lowercase
    Capitalize - capitalizes all words (e.g. Posting A New Topic In Share Your Workflows)
    Title Case - capitalizes word except for "the", "in", "of" etc. according to American English title conventions (e.g. Posting a New Topic in Share Your Workflows)
    Sentence Case - capitalizes only the first letter of the first word & converts the rest to lower case
     
    All of these are set to Copy to Clipboard and Paste by default.
     
    There's also a script filter cc which lets you view the query converted and select your choice (like the Code Case workflow).
     
    You can also connect a hot key directly to the cc script filter directly to view the output options without typing the cc command and pasting your text.
     

     
    Download:
     
    https://www.dropbox.com/s/8fydkkef1t699et/Case Converter 3.alfredworkflow?dl=0
     
    NB This is a new link and will download as a new workflow - you'll need to migrate any hotkeys and delete or disable the older version.
     
    Here's the old Python 2 version in case anyone wants it:
     
    https://www.dropbox.com/s/3k2lh21g5wnqrkp/Case Converter 2.alfredworkflow?dl=0
     
    The original version is described below and still available, if anyone prefers it.
     
    Workflow Version:
     
    This workflow converts the case of the text on the clipboard.
     
    http://dfay.fastmail.fm/alfred/Case%20Converter.alfredworkflow
     
    There are two workflows which display the following five options:
     
    Uppercase
    Lowercase
    Capitalize - capitalizes all words (e.g. Posting A New Topic In Share Your Workflows)
    Title Case - capitalizes word except for "the", "in", "of" etc. according to American English title conventions (e.g. Posting a New Topic in Share Your Workflows)
    Sentence Case - capitalizes only the first letter of the first word & converts the rest to lower case
     
    The keyword case will transform the text on the clipboard without pasting the result.
    The keyword casep will transform the text on the clipboard and paste (using Applescript System Events)
     
    Hotkey Version:
     
    Here is a version for use with hotkeys which will operate on the active selection in OS X and paste it with the converted text.  These all have a half second delay prior to pasting, which is necessary for Applescript to be able to paste.
     
    http://dfay.fastmail.fm/alfred/Case%20Hotkeys.alfredworkflow
     
    Notes and Revision History:
     
    These use the Title Case perl script found at https://raw.github.com/ap/titlecase/master/titlecase .
     
    If you manage academic citations with BibDesk, Zotero, Papers, Mendeley, etc., Title Case conversion is especially useful for cleaning up downloaded citations.
     
    Updated May 3, 2013 with nicer colored icon thanks to mjv ( http://www.alfredforum.com/user/4384-mjv/ )
     
    Updated February 5, 2014 to handle Sentence Case and to add a second keyword to paste after conversion.
     
    Updated May 20, 2014 with hotkeys
  9. Like
    dfay reacted to vitor in How to search through system preferences submenus with Alfred? [Question on Reddit]   
    System Preferences (i.e. pre-Ventura) are quite automatable with AppleScript, but System Settings (i.e. in Ventura) so far are not. That said, making a workflow for it should be doable, even without code! Many Preference panes can be opened with the x-apple.systempreferences: URL handler. Meaning that an Open URL Action set to open x-apple.systempreferences:com.apple.preference.security?FDE will open Security & Privacy (Privacy & Security on Ventura) in the FileVault Tab. You’ll even see the Open With dropdown reflect that System Preferences will open.

    To make a codeless workflow for this, one would use a List Filter Input to add every preference and have the corresponding URL handler as the Arg. Then connect that to an empty Open URL Action.

    Of course, one has to figure out which URLs are valid, but there are mutiple lists online.
     
    I’m open to doing it If I’m pinged about it after Ventura has been out and stable for a few weeks. You might’ve seen some of the myriad posts and tweets decrying the current buggy state of the new System Settings app.
  10. Like
    dfay reacted to mkrnr in Feature request: Show Alfred on all screens   
    This option would improve my experience with Alfred a lot. As lonely trolly said, it's not always the case that I look at the active screen when launching Alfred and then I first need to search the screen on which the pop-up opened.
     
    It was already requested in this thread from 2019: 
    And 2021:
    And 2022:
     
  11. Like
    dfay reacted to lonely trolly in Feature request: Show Alfred on all screens   
    Currently I can choose to have Alfred on "default screen", "mouse screen", and "active screen". How about adding a fourth option where identical copies are shown on "all screens", then I never have to worry about what screen I happen to look at, all screens will show my trusty Alfred.
     
    Cheers!
  12. Like
    dfay reacted to Pearcen in Notesy - Apple Notes Daily Note and logging Workflow   
    Looking forward to iOS 16 and MacOS Ventura so the Shortcuts actions can be improved to deal with creating folders and notes.
    Alfred 5 might even add some more fun things.
     
    I've now migrated from Obsidian to using Apple Notes and this workflow so I'll be updating it as required and removing as much complexity as possible when I get a moment or two.
  13. Like
    dfay reacted to Vero in Alfred 5   
    We're planning an Alfred workflow gallery, to which creators will be able to contribute their own workflows.  
     
    The project has been in the works for some time but, as a small team, we've prioritised getting a fantastic Alfred 5 release out first.  Once Alfred 5 has launched and users are happily up and running with the new features, we'll be working on an official site for Alfred workflows, as a separate project to v5.
     
    Our aim is to create a safe and organised platform, which is easily searchable and browsable.
  14. Like
    dfay got a reaction from jpm in Finder scripts (including opening in a single window)   
    This is a workflow I've cobbled together from various sources, notably some modifications to https://github.com/NapoleonWils0n/bashfinder , which is actually a bash front end for a lot of AppleScript.
     
    It contains the following commands:
     
    fo - open a folder in the frontmost Finder window (also available as a File Action)
    fo:i - open a folder in the frontmost Finder window with Icon view (also available as a File Action)
    fo:c - open a folder in the frontmost Finder window with Column view (also available as a File Action)
    fo:l - open a folder in the frontmost Finder window with List view (also available as a File Action)
    all - open "All My Files" (Sierra) or "Recents" (High Sierra and later) in the frontmost Finder window - this uses a Key Combo action ⌘⇧F
    icloud - open iCloud Drive in the frontmost Finder window - this uses a Key Combo action ⌘⇧I
    fat - choose and open an existing tab or window
     
    rf - open a recent folder in the frontmost Finder window
    fi - set frontmost Finder window to Icon view
    fc - Set frontmost Finder window to Column view
    fl - Set frontmost Finder window to List view
    fg - Set frontmost Finder window to Gallery view (i.e. icon view with big icons and a dark background - this is my own take on a Gallery view, which predated the official one introduced in Mojave)
    fw - Close frontmost window and reopen active tab (i.e. close all tabs except the active one)
    merge - Merge All Windows (same as menu command)
    fcfix - set filename column width to 400
    clip - show the Finder clipboard (I bet you didn't know there was such a thing....)
     
    There is a single environment variable: 
    openInNewTab
    set it to 0 to open in the frontmost window (replacing the existing contents) or 1 (the default setting) to open in a new tab in the frontmost window
     
    By using fo and its variants, you can effectively have Alfred open folders in a single window as requested here: 
    https://www.alfredforum.com/topic/11393-opening-folders-in-the-same-finder-window/?do=findComment&comment=59570
    and here:
    https://www.alfredforum.com/topic/11327-any-way-search-open-a-folder-in-same-finder-window/?tab=comments#comment-59276
     
    v.0.5 (2019-06-08)
    Added fat keyword (was going to use ft but it was constantly confused with FaceTime)
     
    v.0.4 (2018-08-06)
    Added icloud and all keywords
     
    v.0.3 (2018-04-08)
    Added file actions
    Added rf and fw keywords
     
    v.0.2 (2018-04-06)
    Added openInNewTab
     
    Download:
    https://www.dropbox.com/s/u1bchxchlm4c1q3/Finder scripts.alfredworkflow?dl=0
     
     
     
  15. Thanks
    dfay reacted to vitor in RecentlyAdded — List directory contents by added date   
    This one already used a single executable as the point of access, so it was a matter of replacing the Ruby script with the Swift binary (signed and notarised, source accompanying).
     
    Any difficulties I bumped into had to do with getting used to the language and its processes; making it fit into the Workflow was dead simple, not really any different from a script. Especially because I wrote it in a terminal with nvim. I set the shebang and tested it by running—didn’t use Xcode or made a project, everything is a single text file.
     
    Also didn’t bother creating a proper data structure for the output JSON and got by with serialising [String: Any]. I did start but making it generic was going to be a lot to codify all the possibilities of the output JSON, making it harder to read for no real benefit: the output JSON of a Script Filter is the whole point of it, so if it’s incorrect Alfred will let you know.
     
    All in all, thumbs up.
  16. Thanks
    dfay reacted to vitor in RecentlyAdded — List directory contents by added date   
    Update.

    Faster execution, rewritten in Swift with official APIs. Also added options to trigger via Hotkeys.

    To update, download the latest version (same URL) or wait a few days and it’ll prompt you to on next usage, since it uses OneUpdater.
  17. Like
    dfay got a reaction from luckman212 in Alfred 5   
    Just saw the blog post and I’m wicked curious to know what this will bring!
  18. Like
    dfay got a reaction from jopemachine in Alfred 5   
    Just saw the blog post and I’m wicked curious to know what this will bring!
  19. Like
    dfay got a reaction from nikivi in Alfred 5   
    Just saw the blog post and I’m wicked curious to know what this will bring!
  20. Like
    dfay got a reaction from FroZen_X in Alfred 5   
    Just saw the blog post and I’m wicked curious to know what this will bring!
  21. Like
    dfay got a reaction from andy4222 in Alfred 5   
    Just saw the blog post and I’m wicked curious to know what this will bring!
  22. Like
    dfay got a reaction from giovanni in Alfred 5   
    Just saw the blog post and I’m wicked curious to know what this will bring!
  23. Thanks
    dfay got a reaction from nemrod in Case Converter (including Title Case) - now working on MacOS 12.3   
    Updated March 26, 2022 to use Python 3 for MacOS 12.3 
     
    Now featuring Universal Action triggers and hotkeys for the following five actions:
     
    Uppercase
    Lowercase
    Capitalize - capitalizes all words (e.g. Posting A New Topic In Share Your Workflows)
    Title Case - capitalizes word except for "the", "in", "of" etc. according to American English title conventions (e.g. Posting a New Topic in Share Your Workflows)
    Sentence Case - capitalizes only the first letter of the first word & converts the rest to lower case
     
    All of these are set to Copy to Clipboard and Paste by default.
     
    There's also a script filter cc which lets you view the query converted and select your choice (like the Code Case workflow).
     
    You can also connect a hot key directly to the cc script filter directly to view the output options without typing the cc command and pasting your text.
     

     
    Download:
     
    https://www.dropbox.com/s/8fydkkef1t699et/Case Converter 3.alfredworkflow?dl=0
     
    NB This is a new link and will download as a new workflow - you'll need to migrate any hotkeys and delete or disable the older version.
     
    Here's the old Python 2 version in case anyone wants it:
     
    https://www.dropbox.com/s/3k2lh21g5wnqrkp/Case Converter 2.alfredworkflow?dl=0
     
    The original version is described below and still available, if anyone prefers it.
     
    Workflow Version:
     
    This workflow converts the case of the text on the clipboard.
     
    http://dfay.fastmail.fm/alfred/Case%20Converter.alfredworkflow
     
    There are two workflows which display the following five options:
     
    Uppercase
    Lowercase
    Capitalize - capitalizes all words (e.g. Posting A New Topic In Share Your Workflows)
    Title Case - capitalizes word except for "the", "in", "of" etc. according to American English title conventions (e.g. Posting a New Topic in Share Your Workflows)
    Sentence Case - capitalizes only the first letter of the first word & converts the rest to lower case
     
    The keyword case will transform the text on the clipboard without pasting the result.
    The keyword casep will transform the text on the clipboard and paste (using Applescript System Events)
     
    Hotkey Version:
     
    Here is a version for use with hotkeys which will operate on the active selection in OS X and paste it with the converted text.  These all have a half second delay prior to pasting, which is necessary for Applescript to be able to paste.
     
    http://dfay.fastmail.fm/alfred/Case%20Hotkeys.alfredworkflow
     
    Notes and Revision History:
     
    These use the Title Case perl script found at https://raw.github.com/ap/titlecase/master/titlecase .
     
    If you manage academic citations with BibDesk, Zotero, Papers, Mendeley, etc., Title Case conversion is especially useful for cleaning up downloaded citations.
     
    Updated May 3, 2013 with nicer colored icon thanks to mjv ( http://www.alfredforum.com/user/4384-mjv/ )
     
    Updated February 5, 2014 to handle Sentence Case and to add a second keyword to paste after conversion.
     
    Updated May 20, 2014 with hotkeys
  24. Like
    dfay got a reaction from andy4222 in Fuzzy search helper for Script Filters   
    I've got a Python 3 version working & just posted it in @deanishe's github repo at https://github.com/deanishe/alfred-fuzzy/issues/3
  25. Like
    dfay got a reaction from Viver de Dividendos in Case Converter (including Title Case) - now working on MacOS 12.3   
    Updated March 26, 2022 to use Python 3 for MacOS 12.3 
     
    Now featuring Universal Action triggers and hotkeys for the following five actions:
     
    Uppercase
    Lowercase
    Capitalize - capitalizes all words (e.g. Posting A New Topic In Share Your Workflows)
    Title Case - capitalizes word except for "the", "in", "of" etc. according to American English title conventions (e.g. Posting a New Topic in Share Your Workflows)
    Sentence Case - capitalizes only the first letter of the first word & converts the rest to lower case
     
    All of these are set to Copy to Clipboard and Paste by default.
     
    There's also a script filter cc which lets you view the query converted and select your choice (like the Code Case workflow).
     
    You can also connect a hot key directly to the cc script filter directly to view the output options without typing the cc command and pasting your text.
     

     
    Download:
     
    https://www.dropbox.com/s/8fydkkef1t699et/Case Converter 3.alfredworkflow?dl=0
     
    NB This is a new link and will download as a new workflow - you'll need to migrate any hotkeys and delete or disable the older version.
     
    Here's the old Python 2 version in case anyone wants it:
     
    https://www.dropbox.com/s/3k2lh21g5wnqrkp/Case Converter 2.alfredworkflow?dl=0
     
    The original version is described below and still available, if anyone prefers it.
     
    Workflow Version:
     
    This workflow converts the case of the text on the clipboard.
     
    http://dfay.fastmail.fm/alfred/Case%20Converter.alfredworkflow
     
    There are two workflows which display the following five options:
     
    Uppercase
    Lowercase
    Capitalize - capitalizes all words (e.g. Posting A New Topic In Share Your Workflows)
    Title Case - capitalizes word except for "the", "in", "of" etc. according to American English title conventions (e.g. Posting a New Topic in Share Your Workflows)
    Sentence Case - capitalizes only the first letter of the first word & converts the rest to lower case
     
    The keyword case will transform the text on the clipboard without pasting the result.
    The keyword casep will transform the text on the clipboard and paste (using Applescript System Events)
     
    Hotkey Version:
     
    Here is a version for use with hotkeys which will operate on the active selection in OS X and paste it with the converted text.  These all have a half second delay prior to pasting, which is necessary for Applescript to be able to paste.
     
    http://dfay.fastmail.fm/alfred/Case%20Hotkeys.alfredworkflow
     
    Notes and Revision History:
     
    These use the Title Case perl script found at https://raw.github.com/ap/titlecase/master/titlecase .
     
    If you manage academic citations with BibDesk, Zotero, Papers, Mendeley, etc., Title Case conversion is especially useful for cleaning up downloaded citations.
     
    Updated May 3, 2013 with nicer colored icon thanks to mjv ( http://www.alfredforum.com/user/4384-mjv/ )
     
    Updated February 5, 2014 to handle Sentence Case and to add a second keyword to paste after conversion.
     
    Updated May 20, 2014 with hotkeys
×
×
  • Create New...