Jump to content

dfay

Member
  • Posts

    1,054
  • Joined

  • Last visited

  • Days Won

    61

Reputation Activity

  1. Like
    dfay reacted to yellowsoar in Fuzzy, self-updating list filter workflow template (working in 12.3)   
    I create a workflow for web search based on your work. @dfay
    https://github.com/yellowsoar/alfred_web_search_with_fuzzy_list
  2. Thanks
    dfay reacted to lutefish in ZotHero — Generate Zotero citations in Alfred   
    I want to thank deanishe for his ONGOING support of an Alfred workflow for Zotero, -a tool he doesn't use at all-.
     
    He redeveloped an abandoned Alfred/Zotero workflow 4 years ago to make ZotHero. His generosity to the academic Alfred community is astonishing. I encourage everyone to buy him a beer
  3. Like
    dfay reacted to Andrew in Using PHP on Monterey (macOS 12)?   
    Just as a quick update on this, when I release the next version, the bin error dialog now gives a few more useful options allowing for workflow to be opened or disabled so you don't see the issue again:
     

    Alfred will also search for alternative paths when the macOS standard bin path is missing, e.g. for php Alfred will also look in:
     
    /opt/homebrew/bin/php /usr/local/bin/php  
    I have some more changes I want to implement for the next release, however, there is a good chance I'll do an interim build in the next few days which will contain this change, allowing for macOS 12 users to use php workflows if they have an alternative php installed (e.g. via homebrew).
     
    Cheers,
    Andrew
  4. Like
    dfay got a reaction from yellowsoar 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
  5. Like
    dfay got a reaction from deanishe in Fuzzy, self-updating list filter workflow template (working in 12.3)   
    You don't need two lists.  Just create one with your desired searchable text duplicated in the Title and the Subtitle fields.  e.g.
     
    myTitle,mySubtitle,myArg
    mySubtitle,myTitle,myArg
  6. Like
    dfay got a reaction from deanishe in Pass a shortcut key and pull tabs from another app   
    It’s a rough road to head down but AS UI Scripting can probably help you here:
     
    The script at the last link is esp. helpful:
    http://hints.macworld.com/article.php?story=20111208191312748
     
     
  7. Like
    dfay got a reaction from Alan He in support iOS shortcuts   
    I think he means triggering a shortcut on an iOS device to control Alfred Remote, not running them on a Mac.
  8. Like
    dfay got a reaction from vitor in support iOS shortcuts   
    I think he means triggering a shortcut on an iOS device to control Alfred Remote, not running them on a Mac.
  9. Like
    dfay reacted to jhncbrwn in How to show top level folders in iCloud/mobile documents?   
    @dfay and @deanishe Thank you for the explanations.
     
    Searching for "documents" does what I need, it makes the top level "folders" show up.
     

     
    Thanks again for the prompt replies.  
  10. Thanks
    dfay reacted to iApple in Snippet Date format   
    Enter in snippet  {date:MMddyy} 
  11. Thanks
    dfay got a reaction from Chris Messina in Fuzzy, self-updating list filter workflow template (working in 12.3)   
    Yeah I added that per your request - took way longer than expected because of issues building the json dict but it's done.  The download link is the same.
  12. Like
    dfay got a reaction from cands in Code Case   
    Following up a request re: my Case Converter workflow, I've put together a case converter focused on code.
     
    Updated 2021-08-04 to use Universal Actions - now requires Alfred 4.5 beta.
     
    It's hosted on Packal: Code Case
     
    There is a single script filter codecase which converts the argument   e.g.     and copies it to the clipboard.   The example shows a space delimited argument, but it will also convert between any of the cases, e.g. Camel -> Pascal, so   codecase myGreatVariableName   will return   my_great_variable_name   etc.   The workflow also contains blank hotkeys for each of the conversions (set up to act on selected text and paste into the frontmost app).    Based largely on this SublimeText plug-in: https://github.com/jdc0589/CaseConversion/blob/master/case_conversion.py   Revisions:   1.4 (2021-08-04) updated to use Universal Actions, requiring Alfred 4.5 beta.  Also added more fun Space Case icon.   1.2.1 (2014-08-29): - updated to use Alfred Workflow 1.8.6 1.2 (2014-08-29): - added hotkeys   1.1 (2014-08-29): - added Cobra Case (capitalized Snake Case) and separate words - added uids so Alfred will sort results based on frequency of usage
  13. 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
  14. Like
    dfay reacted to soar47 in Enable Quicklook for multiple files   
    The shell command for quicklook `qlmanage -p {{filename}}` accepts multiple file arguments and allow you to switch between them in one quicklook window. It'd be great to be able to do so in Alfred as well.
     
    For instance, I often add multiple image files to the file buffer and apply a macro on them with file action. This file action then leads to a script filter, where I choose between different editing methods (as shown below). At this point I'd like to quickly preview all these images before applying any editing.
     

  15. Thanks
    dfay reacted to deanishe in Workflow: Units - convert currency length temperature weight and more   
    In bash:
    curl -sfL -F v=3.6 -F "q=$1" http://units.dnsu.ch/units/server/alfred if [ $? -ne 0 ]; then echo '{"items": [{"title": "Units is unavailable", "subtitle": "sorry..", "icon": {"path": "Icons/error.png"}}]}' fi  
  16. Confused
    dfay reacted to Chris Messina in Sharing some useful simple Universal Action   
    @Andrew seeing some unexpected behavior here:
    I invoked my UA hotkey on an .mp4 and yet was able to access Case Converter UAs even though their type was set to only apply to Text.² Only three UAs from @dfay's Workflow show up, even though five should appear.¹ All of the UA titles are the same, but I expect them to use the block's title (i.e. "Upper Case", "Lower Case", etc). Am I missing something about how UAs work? 
     
    ¹
    ² 

  17. Like
    dfay got a reaction from cands in Sharing some useful simple Universal Action   
    Here are a couple of updated workflows of mine:
     
    https://www.alfredforum.com/topic/2180-case-converter-including-title-case/
    https://www.alfredforum.com/topic/4818-code-case/
  18. Like
    dfay reacted to Bhishan in Add new feature to turn on/off workflow to allow in Universal Action   
    I have hundreds of workflows and many many Alfred commands. When I selected some text in text editor and went to Universal Action (cmd opt \),
    there are too many actions to choose from and many of them are completely irrelevant. It would be better if there are less items to choose from.
     
    Suggestion:
    Please add a feature so that we can right click a chosen workflow in Workflows tab of Alfred and turn it on or off to be allowed in Universal Action.
  19. Like
    dfay got a reaction from pseudometa in Sharing some useful simple Universal Action   
    Here are a couple of updated workflows of mine:
     
    https://www.alfredforum.com/topic/2180-case-converter-including-title-case/
    https://www.alfredforum.com/topic/4818-code-case/
  20. Like
    dfay reacted to Chris Messina in Sharing some useful simple Universal Action   
    Thanks @dfay! Big fan of your Case Converter! I gently rearranged some of the blocks and added some synonyms in case you're interested (download):
     

  21. Thanks
    dfay got a reaction from Chris Messina in Sharing some useful simple Universal Action   
    Here are a couple of updated workflows of mine:
     
    https://www.alfredforum.com/topic/2180-case-converter-including-title-case/
    https://www.alfredforum.com/topic/4818-code-case/
  22. Like
    dfay got a reaction from paulw in Workflow Picker   
    I've actually had this disabled for the last few years.  Glad to see it was such an easy fix.
  23. 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/
  24. Like
    dfay reacted to deanishe in Text and URL Actions   
    If we can figure out a way how it could be implemented without breaking existing stuff, like Vítor is trying to do, then maybe we can have it.
     
    One possibility might be a hotkey to toggle Alfred's window between the current result list and a single, large, multiline text input to edit the query. Then you'd have to toggle back to view and action the results. For users that deal with a lot of multiline inputs, there could perhaps be a global "show Alfred in multiline mode" option to start Alfred in multiline edit mode if the received query has multiple lines.
  25. 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
     
     
     
×
×
  • Create New...