Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by dfay

  1. Is there any chance Alfred could be set to dump the clipboard contents in json somewhere as well? I’d love to be able to pull them in from Dropbox in an ios shortcut.
  2. If you search forums for finder window this is the fourth hit & does what you’re looking for
  3. That’s not likely to help - the underlying problem is a Spotlight issue. I’d avoid using root for anything not absolutely necessary.
  4. If I'm not mistaken the pull down menu is what's referred to in AppleScript as a pop up - the Keynote script above uses this code to select a preset from the same kind of menu: set thePopUp to first pop up button of sheet 1 of window 1 whose description is "Presets" click thePopUp click menu item "6x" of menu 1 of thePopUp
  5. UI scripting can be done in AppleScript (and I think it will be the same process for Alfred and KM, but I don't use KM) -- but it does tend to be fragile. see this for an example that still works after six years, with a print sheet (i.e. same kind of element you're looking at) https://github.com/derickfay/keynote-to-pdf I was only able to create this by using the script here to identify the UI elements: http://hints.macworld.com/article.php?story=20111208191312748 see also the resources in this thread:
  6. right - I get that - just saying that there's another way to find the exact keyword or name that you can then enter in the prefs
  7. Couldn't you make an alias to a folder full of snippets that only exists on one computer, & stick that in the synced snippet folder? update: nope, that won't work as the Alfred Preferences don't seem to resolve aliases....
  8. Note that if you use the snip keyword it does give partial matches. Not the same but it should make it easy enough to find what you're looking for in most cases.
  9. I've moved all my snippets from TextExpander to Alfred, and it's actually pretty easy to create the equivalent of a nested snippet using snippet triggers in a workflow . Not as simple as in TE but easy to do if you don't anticipate continuously creating a lot of new ones (which is still easy but a bit of work.) Here's an example: https://www.dropbox.com/s/xu8afkqd4hfzgn2/nested snippets.alfredworkflow?dl=0 The snippet values are stored as environment variables and the first two snippet triggers show how to use them. The third shows how to use a list filter
  10. Yeah i’m in the exact same situation. No rush at all.
  11. I suspect this is unfortunately the issue: ”macOS 10.15 Catalina bans third-party applications from searching the Mail.app Spotlight index. On macOS Catalina, HoudahSpot will thus no longer be able to find your Apple Mail messages.” From https://blog.houdah.com/2019/07/is-houdahspot-optimized-for-upcoming-versions-of-macos/
  12. I don't, was just being lazy. Updated to actually parse the query rather than sticking it in a list and hoping for the best.
  13. I was focused on speed of entry hence the fixed folder. Otherwise there’s either a fourth string to include in the text or an additional entry box. By that point you might as well open preferences and do it natively. It might be possible with a file filter, though - let me look.
  14. Just figure out why you can't drag these. As hinted at (but not really explained) here the draggable area is only the border padding. Which is set to as small as possible in these - which makes them look so good imho. But it also makes them almost impossible to drag (there's actually a tiny square in the top left where you can drag...). @Andrew could you consider allowing some other theme elements to work as drag handles?
  15. These are in the environment variables for the workflow. You can set them through the GUI without editing the script - you click the [x] icon in the top right of the workflow screen, and a panel will drop down where you can set them. I believe the devs recommend against using iCloud Drive for Alfred's preferences. But in any case you should be able to go to your Alfred.alfredpreferences file location (as set up in Settings > Advanced > Syncing > Set preferences folder... ) then add /snippets/ to the end of that path.
  16. Two options (among many): 1. you can create a file action to open in a particular app so you don’t need to navigate the submenu 2. you can do it the way you describe a couple more times and Alfred should learn your default action
  17. See for the background. Snippet Creator adapted from https://github.com/derickfay/import-alfred-snippets There are two keywords, both of which result in the creation of a new snippet: sc - (single step) Required fields: name|keyword|content -- separated by | sc2 (multi step) - Enter the snippet text, then you'll be prompted for the keyword / name -- in the interest of speed and simplicity the name is set to the keyword. sc2 also has triggers to pre-population with selected text or clipboard contents set prefsPath in the env
  18. I've adapted https://github.com/derickfay/import-alfred-snippets to run from a workflow and would be happy to post it. First though, let me ask @Andrew are there any problems likely to arise from adding a .json file to "...Alfred 4/Alfred.alfredpreferences/snippets/" while Alfred is running? I haven't encountered any but it still makes me nervous to mess with the preferences of a program while it's running.
  19. See If Spark has added scripting it’s possible, but I’d be surprised given the company’s record.
  • Create New...