Jump to content

deanishe

Member
  • Posts

    8,759
  • Joined

  • Last visited

  • Days Won

    522

Everything posted by deanishe

  1. You can also use a Run Script to spit out the right path. -f means "file exists". if [[ -f "/path/to/your/file/here" ]]; then echo "/path/to/your/file/here" elif [[ -f "/path/to/your/other/file/here" ]]; then echo "/path/to/your/other/file/here" fi
  2. I suspect library scripts are outside of Alfred's purview. Is it not possible to save your library script as a text/.applescript file till it's finalised?
  3. Snippets are JSON files. Why not use a git hook to (re-)generate the JSON files when you push a change to your snippets repo?
  4. Please read the instructions. Moving to Workflow Help & Questions forum
  5. You can't. The indexing/searching subsystem on OS X (and therefore Alfred) is include-only. There's no way to exclude certain types of files. The "Alfred Way" is to keep your default scope fairly limited and use File Filters to implement additional, more specific searches. In your case, I'd probably remove the Things data from Alfred's default scope and then add a File Filter specifically for searching Things todos.
  6. urlEncode is what you're after. http://applescript.bratis-lover.net/library/url/
  7. Do what every administrator and developer does and Google it.
  8. No idea: it's a network problem. It's possible your mail provider blocks connections from PIA due to spamming.
  9. Ace. Works in File Filters, but not in File Actions, alas. You also can't directly edit the UTIs in the Types list in File Actions, either (have to edit info.plist). Any chance you could add the feature(s) to File Actions, too? ATM, I can find the files just great, but not pass them to the File Action… On a related note: Is there any way to prevent ⌥+⌫ from removing the last item from the File Buffer? I habitually use it to delete the query (to search for the next file to add to the buffer), so it's basically interfering with my use of the buffer (⌥+← removes the last item, anyway).
  10. It'd be cool to have the option to search kMDItemContentTypeTree instead of kMDItemContentType in File Filters and File Actions. That way, it'd be possible to use UTIs like public.movie and public.audio instead of having to drag a dozen different files to the File Types box (VLC actually exports 20 filetypes that conform to public.movie). It also wouldn't matter if some application decides to redefine the UTI for .mkv or .opml files (again). It would also enable File Actions like "Tidy XML" to work on XML files that don't have the UTI public.xml but include it in their hierarchy, such as .opml, .xhtml, .opf etc.
  11. Come to think of it, that won't work. If you're piping in the input, you'd need: echo "{query}" | python -c "import sys, urllib as ul; print ul.quote_plus(sys.stdin.read())"
  12. Update to v3.0. Should now run much faster. Alfred 2 is no longer supported, however.
  13. v1.24 just released. Log level now defaults to INFO if Alfred's debugger is closed and DEBUG if it's open
  14. Updated to v0.3 which uses Alfred 3.2's awesome new re-run feature, so it does update results live when the cache is updated. Turned this off, too! Sorry the update took so long. As noted, DFX 5 hasn't been working for me. Alfred 3.2's new re-run made it irresistible, though.
  15. Dunno, tbh. It works perfectly for me. You have any other problems with Terminal.app?
  16. Works for me. Does Terminal Command work with other things? Are you using the default settings or have you set a custom terminal script in Alfred Preferences > Features > Terminal/Shell?
  17. Aliases don't work in non-interactive mode. Just pipe the input straight into the Python command: echo "{query}" | python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1])"
  18. No, I mean that phyllisstein quit working on it years ago. It doesn't even support a few Alfred 2 features, like modifiers. There are no official libraries for Alfred. As far as Python goes, I'm pretty sure my library is the only one that's properly maintained (i.e. kept up to date with Alfred's features). OTOH, Alfred's added a lot of features over the last couple of years (environment variables, the debugger and especially JSON feedback in Alfred 3) that make libraries far less necessary.
  19. That won't work, I'm afraid. alp was discontinued quite some time before Alfred added environmental variables. It has the cache and data paths hard-coded into it. You'll either need to fix alp yourself or use a more up-to-date library. That runs fine outside of Alfred, as it falls back to reading info.plist if the environment variables aren't set. Newer versions default to Alfred 3's data/cache paths in that case, however.
  20. Update to v0.6 today. Get it from Packal or GitHub. Only one new feature: the workflow can now update itself from GitHub releases.
  21. It means that you may have to re-factor your code into Alfred-specific and generally-useful parts. Note that if you edit your workflow in Alfred 3, it will no longer be compatible with Alfred 2 (regardless of whether you use any 3-only features or not).
  22. v1.23.1 just released. Adds support for the new rerun feature in Alfred 3.2 and rejiggers Workflow3 variables to fit Alfred 3.2's equally new top-level variables feature.
×
×
  • Create New...