Jump to content

Chris Messina

Member
  • Posts

    451
  • Joined

  • Last visited

  • Days Won

    28

Reputation Activity

  1. Like
    Chris Messina reacted to Andrew in Show Insert menu when right-clicking or double-clicking on an object connection   
    Adding it here would be discoverable.
     
     
    Adding it here would be non-standard.
  2. Thanks
    Chris Messina reacted to Andrew in Show Insert menu when right-clicking or double-clicking on an object connection   
    Adding "Insert object" on the right click context menu for connections actually already exists on my future improvements to the workflow editor plan.
     
    This is along with new a "Delete and Reconnect" objects (where possible) when on the selected object context menu, which would remove the object and connect the incoming and outgoing connections.
  3. Thanks
    Chris Messina reacted to vitor in [SOLVED] Workflow to append current browser URL to another URL   
    It already opens in the same window. Or it should; if it’s not doing it, either your browser has atypical behaviour, or you’ve configured it differently, or you have more than one instance open (in which case there’s not much we can do as AppleScript doesn’t allow us the ability to differentiate between instances of the same app). If you mean opening in the same tab, replace the code with this (only lines 8 and 10 changed) and delete the Open URL node.
     
    const frontmost_app_name = Application('System Events').applicationProcesses.where({ frontmost: true }).name()[0] const frontmost_app = Application(frontmost_app_name) const chromium_variants = ['Google Chrome', 'Chromium', 'Opera', 'Vivaldi', 'Brave Browser', 'Microsoft Edge'] const webkit_variants = ['Safari', 'Webkit'] if (chromium_variants.some(app_name => frontmost_app_name.startsWith(app_name))) { frontmost_app.windows[0].activeTab.url = 'https://web.archive.org/web/*/' + frontmost_app.windows[0].activeTab.url() } else if (webkit_variants.some(app_name => frontmost_app_name.startsWith(app_name))) { frontmost_app.documents[0].url = 'https://web.archive.org/web/*/' + frontmost_app.documents[0].url() } else { throw new Error('You need a supported browser as your frontmost app') }  
     
    Changes are, again, on lines 8 and 10.
     
    const frontmost_app_name = Application('System Events').applicationProcesses.where({ frontmost: true }).name()[0] const frontmost_app = Application(frontmost_app_name) const chromium_variants = ['Google Chrome', 'Chromium', 'Opera', 'Vivaldi', 'Brave Browser', 'Microsoft Edge'] const webkit_variants = ['Safari', 'Webkit'] if (chromium_variants.some(app_name => frontmost_app_name.startsWith(app_name))) { frontmost_app.windows[0].activeTab.url().replace(/(.*?\/\/)(.+?)\/.*/, '$2') } else if (webkit_variants.some(app_name => frontmost_app_name.startsWith(app_name))) { frontmost_app.documents[0].url().replace(/(.*?\/\/)(.+?)\/.*/, '$2') } else { throw new Error('You need a supported browser as your frontmost app') }  
     
    That’s a newline character from the output. Stick a Transform Utility with Trim Whitespace between the Run Script and the Open URL.
     
     
    There’s no point to that. query is just a generic name Alfred uses, there’s no reason a variable with that name has to be used.
  4. Like
    Chris Messina got a reaction from Terminal in Add ⌘-D to duplicate Workflow object   
    I make many keyword-based Workflows and I would find it incredibly efficient to be able to quickly duplicate an object using ⌘-D.
     
    Currently I can hit ⌘-C and then ⌘-P (copy and paste), or right-click and choose copy and then right-click and paste:
     

     
    ...but many apps (like Sketch) support ⌘-D to duplicate the selected object or objects:
     

     
    This would greatly improve my efficiency. 
  5. Like
    Chris Messina got a reaction from thec13 in 🔎 Alfred Custom Searches directory! 🆕   
    After exploring @deanishe's great Searchio Workflow, @nikivi's Web Searches Workflow, and asking for tips on how to best share my many Custom Searches, I decided to launch a simple website with a listing of my Custom Searches, along with icons that I'm making for each one.
     
    There are 57 searches so far, I have another 33 that I'm working on, and you can also submit your own suggestions! 
     
    Would love to know if you find this valuable! 
     
    Visit Alfred Custom Searches
     

     
  6. Like
    Chris Messina reacted to Vero in {date} and {time} format in Snippets   
    Hi guys,
     
    This is already possible in Alfred 3, but as it's still in beta, the documentation isn't live yet.
      You can just use {date:FORMAT} e.g. for ISO 8601: {date:yyyy-MM-dd'T'HH:mm:ssZZZZZ}   Take a look at http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patternsuntil our own documentation is live to be more specific with your date formatting.   Cheers, Vero
  7. Thanks
    Chris Messina reacted to austriker in Hey Email-inspired Themes   
    Ooooo this is brilliant. Thanks a lot!
  8. Like
    Chris Messina reacted to deanishe in Seeking suggestions on sharing Custom Web Searches   
    @chris Have you looked at Searchio!?
     
    It's basically what you're describing, only it's for providing search suggestions from different search engines, not just generating search URLs. It's fairly simple to add custom search engines or specific searches, including your own icons.
     
    It doesn't do what you're trying to do, but it's probably worth looking at because it covers all three of your bullet points.
  9. Like
    Chris Messina reacted to nikivi in Seeking suggestions on sharing Custom Web Searches   
    Have you tried https://github.com/nikitavoloboev/alfred-web-searches

    I will try to push an update for support of truly custom searches. But the idea behind the workflow is that is that it searches over a list of searches defined here (https://github.com/nikitavoloboev/alfred-web-searches/blob/master/workflow/websites.csv)
     
    As example, here is a line in the csv file
    `
    Pinboard,https://pinboard.in/search/?query={query}&all=Search+All `  
    Then you search for Pinboard in workflow
     

     
    And on return you start typing query, that query will be what will be placed in {query} exactly the same as what alfred allows.
     

     
    I use it all the time but didn't get to making it more user friendly to other contributions in case you don't want to use any of the 500 searches defined that come with workflow I want to allow users to have custom lists.
     
    Also now that I am typing this out, Alfred allows you to create keywords for each of the queries (forces you too actually). Would be nice to solve this use case too perhaps. 

    The only way I see how to solve it is to generate Alfred objects in similar way that https://github.com/deanishe/alfred-searchio does. Don't see any other way.
     
    But if you do want to have many custom searches with unique keyword, workflow will get big (many objects generated) and thus slow to use.
     
    Actually never mind all that, I have a solution that doesn't require object generation. Create hotkey blocks that send a keyword like `PInboard` and the workflow will know what to do with it. Will try to solve this and let you know @chris as I believe it should solve the issue you have nicely. Alfred web searches are way too limiting and require too much friction in creating a new search. Web Searches allows creating a new search by opening a file (have it bound to km macro) and adding one line.  
     
  10. Thanks
    Chris Messina reacted to Andrew in Seeking suggestions on sharing Custom Web Searches   
    @chris have you considered creating a workflow of multiple Keyword Input -> Open URL Action object pairs instead of using the Custom Web Search feature? This is essentially what built-in custom web searches are doing under the hood.
     
    If you set a bundle id on the workflow, then sharing a new version of your workflow with added or altered urls will update the currently installed workflow and also maintain any keywords people have altered within the workflow.
     
    Using this method will also retain the image you've set for the custom searches.
     
    Side note: In the Open URL Action, there is a "Custom Search" button to the right of the URL field to pull in a custom URL you've created.
     
    Side note 2: If you create one empty Keyword Input -> Open URL Action pair, you can copy and paste it many times to save time adding each pair manually.
     
    Cheers,
    Andrew
  11. Like
    Chris Messina reacted to vitor in Advice on structuring my Github repos?   
    Then don’t make a mess. There are twelve unnecessary posts—all yours—on the first page of this thread (and they are the reason there’s a second page). You post too much too often and it seems to be getting worse. You make new posts like other people make paragraphs.
     
    That’s annoying for other users because we get an absurd amount of avoidable pings and your question is all over the place. You’re making more work for us to help you, which is unreasonable and works against you.
     
    Pause before you submit a reply. Make sure everything is in there. If you need to add something to a thread but the last post is yours and it was made in the previous two hours, edit it instead.
     
     
    Which is compounded by posting to a forum like if it were a chat.
     
    It’s not that you (@nikivi) can’t figure out the answer, but that you don’t think about the question before asking.
    Not enough. Don’t ask unless you’re able to describe what you’ve tried and how it didn’t work. Many answers will come to you during this process and you won’t even need to post (rubber ducking is real; use it). If you haven’t tried anything, you haven’t thought about the problem.

    Slow down. You’re trying to go faster than you can manage, which is why you always crash and get stuck. Go slower and you’ll reach farther.
  12. Like
    Chris Messina reacted to deanishe in Advice on structuring my Github repos?   
    I wouldn't give someone grief for asking a noob question. Only for asking it over and over again.
     
     
    AFAIK, Niki is the only regular poster who has.
     
    But we do have some alumni who'd never coded in their lives before they wrote an Alfred workflow and are now professional developers.
  13. Like
    Chris Messina reacted to Florent Isidore in Alfredworkflows.store - A new platform of curated workflows   
    Hi!    I made up this new Alfred marketplace of workflows as a guy fancy of digital tools and productivity (and as Alfred Lover of course)   Alfred workflows is a curated list with a selection of 100+ Workflows for everyone divided into 13 Categories (Design, Development, Productivity, Video and others...) and for different job titles (Developers, Project Managers, Designers…)   The community of Alfred users and I will add more every week to help people and you be more productive.   This is a version 1.0, not perfect. Hope you will enjoy it.    What do you think?
      Feel free to ask me any questions and share your feedback!   Cheers! Florent
  14. Thanks
    Chris Messina reacted to nikivi in Advice on structuring my Github repos?   
    I do both, small workflows in one mono repo (https://github.com/nikitavoloboev/small-workflows) updated with OneUpdater. Workflows with more code are updated with deanishe library https://github.com/deanishe/awgo which is the go version of his python library (and shared either in small workflows or as a separate repo).
     
    I like this structure as there is too much friction I feel in sharing a small workflow by creating a new github repo every time.
     
    One other thing that's useful to know is how to symlink workflows. 
  15. Thanks
    Chris Messina reacted to deanishe in Advice on structuring my Github repos?   
    OneUpdater doesn't care how you structure your repos (Vítor keeps all his workflow in one repo), or even if the workflow is in a repo.
     
    My updaters require one workflow per repo and the use of releases. (Except the metadata.json-based one in the Go library.)
     
    Your repo structure looks absolutely fine and should work with OneUpdater no problem.
  16. Like
    Chris Messina reacted to karimkaylani in [Workflow] Sonos Toolkit   
    Appreciate the shoutout man!! This workflow looks awesome :) 
  17. Thanks
    Chris Messina reacted to dfay 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
  18. Like
    Chris Messina reacted to nikivi in Alfred my mind   
    Holy wow, Alfred is insane. Also I did it. ??
     
    Here you can find the latest download with the workflow. With OneUpdater finally working. Hope not to do silly silly mistakes like this again. 
     
    In all honestly though, even though this workflow has quite a few personal things that you don't care for. There is some that I think all can use and love. Books, courses, websites, research papers. There is a lot there and is all super fast. Take a look and see if you like it. ?
     
    Also the little parser I use to convert the markdowns I get from MindNode to Alfred JSON is also freely available. I hope to use it more now that it is out, it is quite powerful. 
     
    In other news, a search engine I am working on will soon get its first public API. I have a really insane workflow idea for it that I hope to write and publish soon too. 
     
    Again, thank you to @deanishe for his patience. No more imgur screenshots from me here. Only workflows. 
  19. Like
    Chris Messina reacted to nikivi in Alfred my mind   
    Alfred my Mind
     
     
     
    This workflow lets you search through entirety of my personal wiki, all the articles I wrote and GitHub repositories, as well as GitHub Gists I share and a lot more.
     
    You can read why I made the workflow here.

    As this workflow is focused and optimised for fast access to all the knowledge and references I have indexed. It is adised you read through some parts of my here first.

    My goals with sharing both this workflow and my wiki knowledge base is to extend my idea of knowledge bootstrapping and tapping into a person's expertise in the most transparent way possible.
     
    For more information, on how you can use the workflow, you can read the GitHub readme.
     
    Hope you like it. ?
     
    Code | Download
  20. Like
    Chris Messina got a reaction from cands in [Workflow] Twitter Toolkit for Alfred   
    Ok, I've published v0.3.2! 
     
    This should please @Bemawr and @Voland and any other Tweetbot users! (Albeit, Tweetbot has a much more limited set of URL schemes to work with). 
     
    🎩  Download the latest.
    Changelog
    [v0.3.2] - 2020-09-06
    Fixed
    Quick fix for missing non-personalized `users` query. [v0.3.1] - 2020-09-06
    Fixed
    Replaced “(from:{var:account})” with “from:{var:account}” (no parens) from app searches. Fixed on errant search that targeted videos rather than all tweets. [v0.3.0] - 2020-09-04
    Added
    Support for Tweetbot URL Schemes by setting tweetbot as platform variable (thanks @bemawr!) (Closes #3) Support for nearby searches: tweets photos videos users keywords to go to: hashtag page topics Alternative keyword ! for notifs Descriptive notes in Workflow OneUpdater (Closes #6) Changed
    Added service and domain variables to make it easier to develop other Toolkits Drastically increased support for Twitter for Mac thanks to new routes included in 8.34 (thanks @nolanobrien!) (Closes #4) Removed
    followees keyword
  21. Like
    Chris Messina got a reaction from Voland in [Workflow] Twitter Toolkit for Alfred   
    Oh interesting...! Since Tweetbot for Mac has its own URL schemes, I can add that! 
     
    Added to my backlog — thanks!
  22. Like
    Chris Messina reacted to deanishe in Seeking quick guidance on enhancing Twitter Toolkit Workflow   
    Oh, I noticed you distribute your workflow in a ZIP file. Workflow files already are ZIP files, just with a different extension, so zipping them again is generally pointless.
  23. Thanks
    Chris Messina reacted to deanishe in Seeking quick guidance on enhancing Twitter Toolkit Workflow   
    Sorry, no. I do as much as possible in code. When I write something like that, it's just a bunch of Script Filters connected to a single Run Script/Open URL:
     

     
    The built-in "Dynamic File Search" example workflow uses a JSON Config utility.
     
     
    You right-click on the element you want to configure, choose "Copy Configuration", then paste it into the JSON Config.
     
  24. Thanks
    Chris Messina reacted to vitor in Link Clean — Remove extraneous information from URLs   
    Usage

    Remove UTM parameters, mobile subdomains, and other clutter from URLs via the Universal Action.



    Alternatively, configure the Hotkey to clean a selected URL or use the lc keyword to declutter the last copied URL.



    Redirects are followed before cleaning and the result is pasted to the frontmost app.

    ⤓ Install on the Alfred Gallery | Source
     
  25. Thanks
    Chris Messina reacted to deanishe in Run macOS Services   
    Run macOS services from Alfred…
     
    on the current selection on the clipboard contents
    on files via a File Action
     
    Installation
     
    Download the latest version from GitHub and double-click to install.
     
    Usage
     
    Use keyword services to run a service on the current contents of the clipboard. Configure the included Hotkeys to run a service on the current selection or clipboard contents. Use the macOS Services File Action to run on selected files in Alfred.
    For more info, see the README on GitHub.
     
×
×
  • Create New...