Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by dfay

  1. dfay

    Alfred vs. Spotlight results

    You can do it by checking a bunch of the boxes in Preferences > Features > Default Results. But I don’t recommend it — see
  2. dfay

    Skimmer: PDF actions for Skim

    I built all my tools off an early manifestation of smargh's work and never updated it to Skimmer b/c the system I had was working well enough. I don't use the semantic color-coding of notes that's in the Skimmer workflow. The export script is here: https://gist.github.com/derickfay/e357c148c257618548a41389ef87b7ad It relies on having the top three notes created with smargh's script here: https://gist.github.com/fractaledmind/6068092 which I call from an Alfred workflow using keyword sk3 - the script above will call Alfred if it doesn't find it. I just export to clipboard and paste into Ulysses. I don't use the specific page linking functionality though it should be easy enough to turn it back on by editing the script and adding back in the randomize_id function, which you can probably find in smargh's repo above -- I deleted it when I wasn't using it. Let me take a look at grouping by colour. Shouldn't be hard. Update: here's a version that will group by colour: https://gist.github.com/derickfay/25b3de3fb18e0d7fa8ca157e3c0bfeb5
  3. dfay

    Keynote Remote

    I doubt it -- the remote functionality in iOS Keynote has improved a lot since this was created (I think it may have still been a separate app back then). Actually....I just downloaded this and installed it and it works just fine. The workflow itself appears blank but the .data files are there in the directory and if you go to Preferences > Remote > + > Workflows it's there & you can add it to Remote. Having said that unless you have a compelling reason to use Alfred, I'd recommend using iOS Keynote but I tend to use a lot of presenter notes.
  4. dfay

    Skimmer: PDF actions for Skim

    Just FYI the original dev has left academia and hasn't been updating the workflow for a couple years. I've stopped using the scripts here and replaced them with an export script that uses Skim's built-in templating to accomplish much the same thing, in much more parsimonious and less breakable code.
  5. Doesn’t look possible given the current API: https://www.dropbox.com/developers/paper-api-alpha#paper
  6. You may find this helpful: I have successfully migrated everything from TE.
  7. @CJK thanks for your work on this! Looking forward to having a bit of time to work through how you did the Applescript / ObjC integration.
  8. Replace the + with & AS is trying to add numbers ( hence the error message ) rather than concatenating strings.
  9. dfay

    Foot Pedals / Udemy

    There are two separate problems here - 1) getting the input from the pedal and 2) controlling the Udemy video. Does the foot pedal send keystrokes? If so, you should be able to capture them in a workflow with a Hotkey trigger. That would then need to call a script to switch to chrome and dispatch the keystroke. Or maybe an open URL with browser set to Chrome depending on how Udemy does it.
  10. dfay

    Search across Cloud Platforms

    I think the underlying problems of performance and differing APIs and capabilities etc. haven't changed. e.g. with Dropbox, finding anything that's synced locally is trivially easy b/c the OS has already done the work of indexing it. Doing a full-text search on files that aren't synced requires a $200/yr. Dropbox Pro subscription and a bunch of API calls.
  11. They are automatically cleared when a workflow is imported.
  12. dfay

    First party sync service

    Why not just keep using Dropbox at the free level?
  13. dfay

    [SOLVED] Duplicate Results

    Yes, details are in the link I posted above.
  14. dfay

    [SOLVED] Duplicate Results

    They're clearly installed by brew. http://osxdaily.com/2018/07/05/where-homebrew-packages-installed-location-mac/ The easiest option is to exclude those directories from Spotlight indexing or from Alfred.
  15. I just want him to answer this question. https://talk.automators.fm/t/sharing-all-the-shortcuts-i-use-activated-from-widgets/3052/2
  16. You'd need to call up Alfred then type the keyword. A snippet trigger aves a keystroke but more importantly it's less of an intrusion into ordinary typing flow (in my experience).
  17. dfay

    Simple counter for the day

    Yes that was written under Alfred 2 I believe...
  18. This is a great idea and not one that’s supported by other text expansion software as far as I know.
  19. dfay

    Simple counter for the day

    I used to use a workflow which had a counter stored in a file. Here'e the AppleScript I used to read/update it. -- get the counter value and increment it set theID to (do shell script "cat ~/Dropbox/texts/nv/_counter.txt") set n to (theID as number) + 1 do shell script ("echo \"" & (n as string) & "\" > ~/Dropbox/texts/nv/_counter.txt") you'd just need to add code to check the date and reset it if it has changed since the last run. I'd personally use Hazel for that but either way you'd test based on the file modification date and if it's before the current date, reset the contents of _counter.txt to 1. Likewise the end of the day task (as Vitor implies) is probably better handled by Hazel. But that could depend on whether the update to the spreadsheet really needs to be done nightly or whether it could be done at the next run, even if that's a day or two later.
  20. weird. But would a reformat not bring the issue back when you restore the files?
  21. Here's a script ready to be hooked into a file action to create smart folders for tags. Set up the script action as /usr/bin/python with input as argv . Select a folder & launch the file action -- it will identify every tag that's used on any file in the folder, and create a corresponding smart folder. Minimally adapted from http://leancrew.com/all-this/2018/10/a-little-tagging-automation/ #!/usr/bin/python import plistlib import sys import os import subprocess as sb query = sys.argv[1] # adapted from http://leancrew.com/all-this/2018/10/a-little-tagging-automation/ # 2018-10-10 # The tag command can be found at https://github.com/jdberry/tag # This is where I have it installed tagCmd = '/opt/local/bin/tag' # Set the working directory to the object of the file filter cwd = query os.chdir(cwd) # then get all of the tags in files under it tagString = sb.check_output([tagCmd, '--no-name', '--recursive']).strip() tagString = tagString.replace(',', '\n') tags = set(tagString.split('\n')) for t in tags: # Build the dictionary for the smart folder rawQuery = '(kMDItemUserTags = "{}"cd)'.format(t) savedSearch = { 'CompatibleVersion': 1, 'RawQuery': rawQuery, 'RawQueryDict': { 'FinderFilesOnly': True, 'RawQuery': rawQuery, 'SearchScopes': [cwd], 'UserFilesOnly': True}, 'SearchCriteria': { 'CurrentFolderPath': [cwd], 'FXScopeArrayOfPaths': [cwd]}} # Make the smart folder plistlib.writePlist(savedSearch, '{}.savedSearch'.format(t))
  22. dfay

    PDF Metadata Editor?

    Generally not, only if I end up citing them. Perma looks great. Very US-focused at the moment. Mostly it’s just because it’s the path of least resistance for me. I can use existing annotation tools etc. I have a Shortcut set up in iOS that lets me select pages like the print dialog on the Mac. Nearly everything gets named YYYY-MM-DD source - title . For most of my purposes this is adequate.
  23. I believe this is a problem with iOS 12 Shortcuts and Dropbox. See https://talk.automators.fm/t/shortcuts-and-dropbox/1917 If you have TextExpander and TE Touch (last non-subscription versions) it's possible to use Hazel and AppleScript to do a one-way sync of snippets from Alfred to TE on the Mac and then use TE Touch on iOS. At least it works for me - I can provide docs and scripts if there's interest.