Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by dfay

  1. This is going to depend on the capabilities of Spark, and given that Readdle has added zero scripting support to PDF Expert for the Mac despite user requests, I wouldn't get your hopes up.
  2. Thanks so much for this. I had something similar cobbled together from others' and my own AppleScript for TP2 but there's no way I was going to have time to update it all in JXA.
  3. I don't have it installed to test but it's probably a matter of changing refs to Alfred-2 in the paths above to Alfred-3
  4. (Trivially but crucially) updated AppleScript for Keynote 7 at https://github.com/derickfay/keynote-to-pdf
  5. For Safari 10 you need to change the AppleScript so that "Details..." reads "Manage Website Data…" Here's the full script: set theWebsite to "{query}" tell application "Safari" to activate delay 2 tell application "System Events" to tell process "Safari" keystroke "," using command down delay 2 tell window 1 click button "Privacy" of tool bar 1 delay 5 click button "Manage Website Data…" of group 1 of group 1 delay 2 keystroke theWebsite delay 1 keystroke tab delay 1 keystroke "a" using command down click button "Remove" of sheet 1 click button "
  6. My latest updates for TaskPaper 3 and OmniFocus: do shell script "cd '/Users/username/Library/Application Support/TaskPaper/'; cat day.less > theme.less" tell application "OmniFocus" set value of preference id "OFIColorPaletteIdentifier" to "builtin:OmniFocus Light" end tell Same code but with night.less and OmniFocus Dark for night. You need to create a day.less and night.less TP3 theme.
  7. I don't know whether to love this or hate this. It looks so good that everything else on my computer looks old and grungy by comparison
  8. nah I don't think it's possible - if Doug Adams doesn't have a script for it, you can pretty much assume it can't be done yet. In Sierra maybe.
  9. This problem is b/c smargh's Applescript action_pdf-splitter.scpt in the workflow bundle calls /System/Library/Automator/Combine PDF Pages.action/Contents/Resources/join.py , an embedded script in one of the stock Automator actions. Unfortunately this Automator action doesn't seem to work in El Cap. if you open action_pdf-splitter.scpt in Script Editor and comment out the line -- tell application "Finder" to delete (every item of (cache_path as alias)) you can look in the workflow cache directory ~/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.skimmer
  10. You can create multiple keywords for workflows already. Just add an additional keyword object and link it to the same outputs as the existing keyword. Keywords in Alfred's window aren't case sensitive. But you're right, snippets only allow a single case-sensitive keyword as it stands now. Re: conflicts with existing words, I'd recommend pursuing an approach that uses punctuation or double letters to avoid that possibility. The approach I've been using for the last couple years is the dot notation described here: https://medium.com/@zholmquist/textexpander-abbreviations-b8e09452
  11. I put my workflows in Categories and filter the view as needed. https://www.alfredapp.com/help/workflows/organising-workflows/ An advantage here is that the category is stored with the workflow metadata, so it can be read without needing to find a way to query Alfred's UI to get the enclosing folder, and/or automatically change a folder field when the user drags stuff around in the UI.
  12. Just updated this with a new version for Alfred 3.
  13. Hi Carlos I was just looking at the source of this to try something but I don't have Script Debugger so I can't actually make any changes. I am wondering if it would be possible to save a current list of recents (in my case to Dropbox) and then re-open it, reading from the list, rather running mdfind locally. Basically what I want is a way to save all my recents on computer A then go to computer B and view computer A's recents. Also it looks like the favorites.txt file is being stored locally in ~/Library/Application Support/Alfred 2/Workflow Data/com.sztoltz.recentitems/favo
  14. Hey Wolph glad to hear you're willing to push forward. I realized that the problem I'm facing is not with the workflow but with the serial port Applescript library breaking on El Cap....so a python version may not help me unless the problem with pyserial has also been fixed....let me check that out.
  15. Wow...missed that completely. I'll look into pyserial and see how it fares on El Cap.
  16. @wolph if you're still around....El Capitan killed the Applescript library I was working with (SerialPort X) and there seems to be no update. How's that python version coming?
  17. Good. All the royalties from my book go to a scholarship fund for disadvantaged South African students -- and not a penny goes to them when someone downloads a pirated copy. Maybe there's a loophole in Russian law that allows this, but this site and workflow basically enable theft, plain and simple.
  18. Yeah deanishe I don't get an error, just no response. Here's what the log looks like -- I had just restarted Alfred before running this workflow, then waiting for a bit at the Scanning Alfred keywords... message, and eventually hitting esc. Starting debug for 'Alfred Keywords Help' [STDERR: alfred.workflow.input.scriptfilter] 17:53:45 workflow.py:2140 DEBUG Workflow version : 1.0.2 17:53:45 workflow.py:1543 DEBUG Reading settings from `/Users/username/Library/Application Support/Alfred 2/Workflow Data/com.pochemuto.alfred.workflow.AlfredHelp/settings.json` ... 17:53:45 workflow.py
  19. I just downloaded 1.0.2 and have the same issue Southgirl described. I checked the source and it contains line 126: log.debug('scanning {0}'.format(workflows_dir)) as deanishe prescribes. I'd post my logs but they are more or less the same as Southgirl's.
  20. See http://www.alfredforum.com/topic/1272-add-to-fantastical/?hl=fantasticalre Fantastical
  21. Also extensible for Byword by adding tell application process "Byword" to key code 53 using command down to each of the tell application "System Events" blocks
  22. Just switched back to this after using smarg19's BibQuery....this is much, much faster.
  23. Very nice. I started extending this beyond Yosemite and Alfred. Here's how I added the ability to switch taskpaper themes as well: 1. copy your current theme (found in ~/Library/Application Support/TaskPaper/Themes/ ) to a file called current.taskpapertheme 2. update the AppleScript in the workflow as follows (substituting your username and your theme names (for Helvetilight-my.taskpapertheme and Helvetidark-my.taskpapertheme) in the appropriate lines): try set guiMode to do shell script "defaults read -g AppleInterfaceStyle" tell application "System Events" tell appearance prefe
  24. A simpler way to do this (without the dependency on Automator) would be using a very short AppleScript, which could be called from a keyword in an Alfred workflow: tell application "Microsoft Word" activate make new document end tell Word (and Office in general) has some of the best AppleScript support of any apps on the Mac & it's well worth checking out -- you can automate practically every feature of the program. Incidentally the script above works with the beta (and would probably work on OS 9....).
  25. If the computer's going to be off frequently, I'd recommend going analog. You can set the whole thing up for under $75. Here's what you'll need: a mixer that takes RCA stereo inputs ($50): http://www.bhphotovideo.com/bnh/controller/home?O=&sku=331962&gclid=CKTgn-yTtcQCFVFffgodryAAxw&Q=&is=REG&A=details 2 x cables to run from the 1/8" headphone outputs on the Mac and iPhone to RCA plugs ($7 each) : http://www.bhphotovideo.com/c/search?N=11019924&InitialSearch=yes&sts=pi an RCA cable (prices vary by length and quality): http://www.bhphotovideo.com/c/
  • Create New...