Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by dfay

  1. Here, try this: https://www.dropbox.com/s/cn5blbpf4flq70g/Active Windows.alfredworkflow?dl=0 If you don't have Skim installed it may crash. If so, try setting the environment variable to just Preview
  2. This is proving to be more complicated....getting window details is easy and standardized but what you can and can’t do with the window varies by app.
  3. Yeah I’m actually working on a workflow that will do this, with any app that supports Applescript including preview. Might be a week before i can get it done.
  4. Two quick ways are 1) type ~ (the Unix abbreviation for the user home directory) and it'll bring you into your home dir and you can use ⌘ & number keys to navigate to Desktop, Downloads etc. 2) type 'Downloads or 'Desktop (typing the single quote before the folder name). This assumes you have turned on Features > File Search > Quick Search
  5. Is there a recommended directory structure etc. for sharing workflows on GitHub?
  6. Just added one to this workflow, keyword is fat - Finder active tabs - because FT kept bringing up FaceTime. The only catch is that AppleScript treats every tab as a separate window, so if you have multiple windows, they will all appear in the results.
  7. Well that lets me get the existing config { "alfredworkflow" : { "config" : { "textcolor" : "", "backgroundcolor" : "", "largetypetext" : "{query}", "alignment" : 0, "fadespeed" : 50, "font" : "", "fillmode" : 1 } } } But adding a JSON Config object before the Large Type object with a different value for font doesn't affect the result. @Andrew is this expected behaviour?
  8. Yes, that's what I was hoping. I looked at the snippet viewer and the snippet keyword results with an RTF snippet, and neither shows the formatting. Hmm I've tried this at your suggestion but am guessing in the dark as to the JSON to use - is it documented somewhere?
  9. That could work. I'd really like to just override the fonts in Alfred's window, like this but with fonts:
  10. With a list filter, where there's a finite, user-defined set of possible actions, it would be convenient to just hit a single key to trigger an action (by default this could be the first character in the action, with duplicate highlighting in the setup). I'm working on a replacement for the buggy, slow-to-be-updated Mail Act-On , and my muscle memory can't handle hitting return any more than I used to.
  11. I'm wondering if it would be possible in Alfred 4 to write a workflow that would call a list filter or script filter which would display the text selection in various fonts, with an action to paste the reformatted text. All of this is straightforward except changing the font. I looked briefly at the arg/var object but it doesn't allow rtf transformations at this point. I'm not really up for writing the raw rtf code to do this but wondering if there's a simpler way....
  12. Yep, that fixed it. I had never touched that setting before but had never used a 3rd party contacts app previously either.
  13. Another approach is to use BBEdit and do a multi-file Find and Replace to correct the source in all the workflows at once. I did this as it's easier for me to maintain with multiple Macs.
  14. Notes is quirky. From Alfred, I can get bold, italic and underline to stick, and bullets, but nothing else. From Ulysses, if I Copy as RTF, I can get headings (## or H2) as headings but titles (# or H1) come in as headings as well. Or, rather, Notes doesn't treat H1 as a title.
  15. No it will be in the MacOS version that launches o/a Sept 2020. Edit: oops misread what you were asking about
  16. I actually like the idea of Alfred providing runtimes but my scripting is almost exclusively in python and Applescript... Beats this
  17. This is a function of the theme but I've forgotten how to change it (and would very much like to do so!). @Andrew can you point us in the right direction?
  18. Updated to use Alfred 4 conditionals to add a snippet to produce the next business day in prose (almost as requested here):
  19. I set my URL handler to x-cardhop://show?id={uid} When I view a contact in Alfred's contact viewer, then hit ⌘O, it opens in Cardhop. However, when I have a contact in Alfred's results list, then hit ⌘O, it opens in Contacts. I'd prefer it if this would also use my custom URL handler instead.
  20. Also, here's an approach I've used to the general issue of running different per-machine configurations with the same workflow.
  21. Change the Run NSAppleScript content to on alfred_script(q) set quote to first paragraph of q set otd to AppleScript's text item delimiters set AppleScript's text item delimiters to {"(Kindle Locations ", ")"} set bits to every text item of q set pageNumber to item 3 of bits set quote to first paragraph of q return quoted form of quote & " (" & pageNumber & ")" set AppleScript's text item delimiters to otd end alfred_script That fixed it for me.
  22. FYI you can act on the selected text with the PopClip Alfred extension ... once it gets updated for Alfred 4. In the meantime, you can set up a workflow with two items: Hotkey -> Show Alfred with {query} as the argument and cursor There's no need to script the pasting or cursor movement in the workflow.
  23. This is built in to the Finder since 2011 http://osxdaily.com/2011/08/07/create-a-new-folder-containing-selected-items-in-mac-os-x-lion/
  • Create New...