Jump to content

dfay

Member
  • Content Count

    902
  • Joined

  • Last visited

  • Days Won

    50

Everything posted by dfay

  1. You’ll need a snippet trigger and a workflow - see
  2. The answer will depend on the app - you’ll need to use Applescript & implementation is highly variable...
  3. I happened to be working on extracting some data from an .xlsx file earlier and ended up using python & openpyxl - just wondering why you used xlrd instead @deanishe. I'm sure you have a good reason & I know you know python way better than me....
  4. Regardless of file type? In any case, you can do this by creating a custom File Action. See https://www.alfredapp.com/help/workflows/triggers/file-action/ and https://www.alfredapp.com/help/workflows/triggers/file-action/
  5. You can just replace all the references in info.plist to Alfred 2 with Alfred & it will work. Except the .taglist is taking eons to complete.
  6. Here's my version (the bash script anyway) pbpaste | /usr/local/bin/bbedit --clean --view-top It gives a more Drafts-like experience by using the --clean option - you can just close the window when you're done and forget about it, no messing around with filenames.
  7. I'd use Hazel to automatically add an alfred:ignore tag to those items - unless you really want them to show elsewhere or you don't use Hazel...
  8. @Carlos-Sz would it be possible for you to post the AppleScript source somewhere for those of us who don't have Script Debugger? The .scpt files don't even open in Script Editor (on Mojave).
  9. Hi -- I think you've posted this in the wrong thread -- this isn't the FineReader workflow & I have no experience with that app.
  10. At the end of this thread there’s an example of trying to target multiple PDF apps (Skim, Preview and Devonthink) with a single Applescript - it’s doable but requires a lot of testing and customizing - unfortunately Applescript grammar isn’t standard even for these most basic tasks.
  11. I was hopeful but it still produces a silence, even with the sound option off in notifications and no new notifications. And as soon as I navigate to another site, the radio comes back on.
  12. Just noticed something very odd. When I have my phone plugged into CarPlay and navigate to the Alfred Forum site, my head unit, which was playing the radio, went silent. It only does this when there's something on a web page playing audio or video. Is there a hidden video or something playing here?
  13. Cue the complaints: why is Alfred littering my file system with random 0 byte files with no extension?
  14. Alternatively you can use Fake, http://fakeapp.com/ , by the developer of Fluid, which lets you use Applescript to control browser interactions. I use this in a lot of workflows to semi-automate interactions with Blackboard courseware.
  15. this script will let you import in bulk from csv: https://github.com/derickfay/import-alfred-snippets
  16. Yeah I thought of Pashua when I saw your post. Point re complexity with multiple variables is well-taken.
  17. Ok I was addressing the subject line “Interactive Variables” which can encompass a lot more than simple fill-ins. But, to stick with fill-ins, what’s so hard about duplicating a prototype then changing the text? I think this is preferable in that it keeps a consistent architecture, rather than using a set of text delimiters to launch Alfred for input, which is not done anywhere else. And it makes it easier to turn a simple fill-in into something more complex. A lot of my snippet triggered filters began as fill-ins then I realized it made more sense to choose from
  18. This all seems a bit overblown. I converted +/- 35 complex (i.e. not just a string) TextExpander snippets when I moved to Alfred & as I recall the whole process was maybe 2 hours. Most of these were AppleScript-based snippets on TE. These are clustered in 7 different workflows (you do understand that you don't need one workflow per snippet trigger, right?). Once you've created the 'Ellie' example above, adding new snippets is simply a matter of copying and pasting that prototype (or another) within your workflow then editing the text. By all means use Dash if it
  19. You need to set the hotkey to trigger it yourself - Alfred strips custom hotkeys on import to avoid creating conflicts.
  20. I've used Skim since 2005, before Preview added annotations, so it's largely a matter of inertia. But it also has better AppleScript capabilities for getting notes out than anything else I've tried I was trying to get the app icons but they weren't showing up despite using (what I think was) the correct json. So I gave up and used the generic 4 square icon. The "All Tags..." control would need to be addressed through GUI scripting. I tried a bit with no success.
  21. Cool, thanks - I expect there will be a lot of similar quirks depending on how apps extend the base classes in applescript, but haven’t had the time to do further testing etc. Unfortunately Readdle seems to have no interest in making their apps scriptable - I had a brief email exchange with them after PDF Expert beta for Mac launched & they’ve done nothing since.
  22. The easiest way to do this will probably be to use Drafts for web searches and Copied for your clipboard. You can also use Copied to replicate Alfred snippet groups (but not the triggers).
  23. Perhaps the technique here will work for you - not exactly the same but it lets you customize workflows by machine: Variant here:
×
×
  • Create New...