Jump to content

Chris Messina

Member
  • Posts

    451
  • Joined

  • Last visited

  • Days Won

    28

Reputation Activity

  1. Thanks
    Chris Messina reacted to Andrew in Icon glitch on Usage page   
    @chris this should now be fixed in the Alfred 4.3 b1195 pre-release
  2. Like
    Chris Messina reacted to Andrew in Alfred 4.3 Pre-release: Big Sur Theming Improvements   
    @chris the borders is something I'm aware of and something I'll have to _simulate_ in the theme editor. Up until now, Alfred uses the same renderer for the theme editor as the actual window, but macOS adds those window borders when you set a visual effect view as the content view of an NSWindow. In the theme editor, I'm using the visual effects view, but as a view, so macOS doesn't render the borders.
     
    I'm in two minds whether to either simulate it, or just add a note saying that macOS may add a border depending on configuration.
     
    I'll add a note about the roundness on the scrollbar and also reduced separators, both valid additions 
  3. Thanks
    Chris Messina reacted to Mr Pennyworth in GIF Search: Workflow for Searching and Browsing GIFs   
    @chris
    I've put together a small tutorial for workflow authors here:
    https://github.com/mr-pennyworth/alfred-extra-pane#tutorial
     
    And a few question-answer pairs for technical internals here:
    https://github.com/mr-pennyworth/alfred-extra-pane#technical-qa
     
    I see a few problems with swiftUI:
    I would imagine there are far more workflow authors who can put together nice looking HTML than swiftUI, all the complexities of the implementation of the extra pane aside, as far as the workflow authors are concerned, I want the integration to be as simple and friction-less as possible. HTML seemed like the best choice for that. I'm not sure how code for compiled language will actually work for the previews. Let's say instead of putting an html file in "quicklookurl", we ask the workflow authors to put a swift file instead. Who compiles the code? Can swift code be even compiled on-the-fly by an app and rendered too? I haven't a clue!
  4. Like
    Chris Messina reacted to Mr Pennyworth in GIF Search: Workflow for Searching and Browsing GIFs   
    Thanks @chris! When you want a panel to be shown at side, and some HTML to be show inside it, yep, you can use the AlfredExtraPane.app. All you got to do is add an html filepath to quicklookurl of the JSON and then pipe it to the app (the readme has an example).

    For building something like this GIF workflow, it is true that AlfredExtraPane.app was an inspiration, but it can't just directly be used to build the GIF workflow, it isn't flexible enough. For this GIF workflow, I simply took the code of AlfredExtraPane.app and modified it to fit the GIF needs, thus programming in swift was involved and understanding how AlfredExtraPane.app works internally was a prerequisite.
  5. Thanks
    Chris Messina 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!
  6. Like
    Chris Messina reacted to Vero in Alfred 4.3 Pre-release: Big Sur Theming Improvements   
    Alfred 4.3 is now in pre-release with gorgeous improvements to theming.
     
    We've added the ability to choose a native macOS Visual Effect view to back Alfred's window, which makes it easy to create native-looking themes, as well as more control over rounded corners.
     
    We've created a couple of themes as examples, but I'm sure you'll create some fabulous themes too!
    Light Experimental theme Dark Experimental theme  
    Below are the key things to check out when creating themes in 4.3. Please read all the way to the end of this post for a few important notes!  
     
    1. Set your base Visual Effect to light or dark under the Window Blur icon in the top left of the theme preview
     

     
    This will define the base of your theme to be brighter or darker. The macOS Visual Effect view is designed to be used with no additional colour, however you can still set your theme's background colour, so you can get some really interesting tints.
     
    Your best bet to get a colour tint is to set the window colour, and turn down the opacity. In the included themes, the dark version has a low opacity black background set. The light theme has a low opacity white background set. An opacity of 30-35% seems to give the best readability in most situations.
     
    2. Rounded corners can be tweaked for the whole window, the search box and the selected result
     
    Hover over any corner of the field you're interested in and drag to set the corner roundness.
     
    3. A few important notes
     
    This feature is still in development, so there may be some more or less visible changes over the next little while The "Share on alfredapp.com" feature isn't yet suitable for these themes, as the site isn't set up to understand the new theme settings If you want to share your theme with a friend, use the "Export as file..." option instead. As usual, check out the change log in the Update tab of the preferences to see the full list of changes in this pre-release  
     And now for some pretty pictures, here are the two themes in their full glory!
     

     

     
    Cheers,
    Vero
     
  7. Thanks
    Chris Messina reacted to Andrew in Bug in Open Search URL parsing   
    Hmm interesting, Alfred should be decoding the XML special chars, I'll take a look at what's going on and get this fixed.
     
    Cheers,
    Andrew
  8. Thanks
    Chris Messina reacted to Vero in Snippets don't work when Secure Entry is locked by iTerm   
    @marslo As per the error message in red in your clip, iTerm 2 has taken secure input. While this error is showing, no apps can expand snippets, as iTerm 2 is restricting other apps from seeing your keypresses, and therefore from being able to expand snippets.
     
    Quit iTerm and keep an eye out for errors such as the one shown in your clip.
     
    More on secure entry here:
    https://www.alfredapp.com/help/troubleshooting/snippets/#secure-input
     
    Cheers,
    Vero
  9. Thanks
    Chris Messina reacted to GuiB in Funnel (a variant of the Pipe workflow)   
    Hi Chris, it's been a while since I touched this workflow, but I think this should be my last version: https://d.pr/f/iAt51A

    Hope this helps!
  10. Confused
    Chris Messina reacted to GuiB in Funnel (a variant of the Pipe workflow)   
    @evanfuchs, sorry for the delay, I needed to go... but I've found that you were maybe talking about the Capitalize action which I didn't modify before. I've found that it did what you said (it strips existing line breaks), so I fixed it (now using a simple python "capitalize()" function)
     
    Here is the updated workflow: https://nofile.io/f/0j4Gjdxwoby/Funnel.alfredworkflow
     
    Best!
  11. Like
    Chris Messina reacted to vitor in [SOLVED] Accessing Clipboard History   
    Then go for the simple and obvious solution. If you’re using {clipboard:1} (i.e. a fixed number) and auto-pasting it to the frontmost app, simply add another Copy to Clipboard Output after it which also copies {clipboard:1} (which previously was {clipboard:0}) but don’t paste. Alfred won’t make it a duplicate, meaning you’re just switching the order back again.
  12. Like
    Chris Messina reacted to vitor in [SOLVED] Accessing Clipboard History   
    Check the Mark item as transient in clipboard box in the Copy to Clipboard Output.
  13. Like
    Chris Messina got a reaction from patgilmour in Custom Scheme/URL for Apple Music App Search (like Spotify)   
    I don't think Music.app supports deep routes like Spotify does. 
     
    You can find the available URL schemes in the app's info.plist file:

    In order to open Music.app to a specific resource, you typically need to generate a full URL with song, album, or artist metadata. You can generate these links using Apple's Services Marketing Tools.
     
    With that tool, you can generate links that will open a specific song in Music.app (but won't perform a search).
     
    To achieve your desired outcome, however, I would recommend @gingerbeardman's Search Apple Music Workflow, which was discussed here.
     
  14. Like
    Chris Messina reacted to Andrew in Easily share snippets (possible to export/import snippets only)?   
    I actually have an internal ticket to provide native csv import into snippets, so expect this in Alfred's future.
  15. Like
    Chris Messina reacted to Macchio in Apple Music search with Alfred   
    Stumbled over this post and ran into the same issues that other users have mentioned when running macOS Catalina 10.15.
     
    After running the debug I saw a duplicate error showing a missing directory, so as an experiment, I ran the following in Terminal:
     
    mkdir ~/Library/Caches/com.runningwithcrayons.Alfred-3/ && mkdir ~/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow\ Data/ This created the directory where the python script returns album thumbnails from the Album & Song search commands.
     
    Additionally since Catalina replaces iTunes.app with Music.app, I went through the three python scripts and archived some of the URL scheme that Music doesn't seem to need. I bumped up the workflow version to 2.1 for tracking purposes.
     
    Search Apple Music.alfredworkflow [Google Drive]
     
    Thanks to all the creators who have put this together!
     
    Pro-Tip: Update Line 19/20 in the artist, album, and song python scripts to your country code to improve search results with images.
  16. Like
    Chris Messina reacted to CristianM in Simple dark theme   
    Here's a simple dark theme I created.
    You can get it here.
     


  17. Like
    Chris Messina got a reaction from dfay in 🔎 Alfred Custom Searches directory! 🆕   
    Got it. Well, appreciate the warning as I understand you to be offering it in good faith and that you're just looking out for me! 
  18. Like
    Chris Messina got a reaction from vitor in 🔎 Alfred Custom Searches directory! 🆕   
    Got it. Well, appreciate the warning as I understand you to be offering it in good faith and that you're just looking out for me! 
  19. Thanks
    Chris Messina reacted to deanishe in Workflow to run acextract on selected file(s) in Finder   
    Tell acextract to be quiet or redirect its output with /usr/local/bin/acextract -i "$carfile" -o "$dirpath" > /dev/null
     
    Thanks for the beer money. I shall be investing it in Guinness.
  20. Thanks
    Chris Messina reacted to deanishe in Workflow to run acextract on selected file(s) in Finder   
    # filepaths from ARGV for carfile in $@; do # strip file extension dirpath="${carfile:r}" # create directory mkdir -p "$dirpath" /usr/local/bin/acextract -i "$carfile" -o "$dirpath" done  
    This should work in zsh (not bash).
  21. Like
    Chris Messina reacted to luckman212 in Multiple keywords to trigger the same script filter?   
    Yep that would be pretty useful! I like the concept of 'alias' since that is already a familiar term for macOS users.
    Something like this would look nice:

     
  22. Thanks
    Chris Messina reacted to Vero in Multiple keywords to trigger the same script filter?   
    The immediate solution is to create a few keyword objects to connect into your workflow. Duplicate your main keyword object then change the keyword, and connect it to the same workflow
     
    Cheers,
    Vero
  23. Like
    Chris Messina reacted to Vero in Add extra search terms to an Application   
    @trytwowheels Take a look at the "Adding keywords as nicknames" section of this blog post. A really quick little workflow is the easiest way to do this
     
    https://www.alfredapp.com/blog/tips-and-tricks/how-to-get-the-results-you-want-in-alfred-every-time/
     
    This is the most reliable way to give other names to your apps, and doesn't rely on macOS features like tags and comments that aren't always reliable.
     
    Cheers,
    Vero
  24. Like
    Chris Messina reacted to luckman212 in Multiple keywords to trigger the same script filter?   
    Related suggestion: https://www.alfredforum.com/topic/13777-keyword-aliases/
     
  25. Like
    Chris Messina reacted to vitor in [SOLVED] Workflow to append current browser URL to another URL   
    Not by storing it in a variable, but by showing its output. In your case, something like:
     
    var url = frontmost_app.windows[0].activeTab.url(); var urlParts = url.replace('http://','').replace('https://','').split(/[/?#]/); urlParts[0];  
    Or chaining everything, with no need for any variable:
     
    frontmost_app.windows[0].activeTab.url().replace('http://','').replace('https://','').split(/[/?#]/)[0]  
×
×
  • Create New...