Jump to content

dfay

Member
  • Content Count

    718
  • Joined

  • Last visited

  • Days Won

    31

dfay last won the day on September 21

dfay had the most liked content!

3 Followers

About dfay

  • Rank
    Advanced Member

Contact Methods

  • Website URL
    http://dfay.fastmail.fm/alfred/

Profile Information

  • Gender
    Not Telling
  • Interests
    see also https://github.com/derickfay - assorted small projects related to Keynote, BibDesk, Alfred, Taskpaper & more
    http://dfay.fastmail.fm/et/ - using Editorial with TaskPaper files
    http://dfay.fastmail.fm/bibdesk/ - BibDesk scripts and templates
    and a blast from the past: http://dfay.fastmail.fm/wordperfect - WordPerfect on the Mac

Recent Profile Visitors

7,541 profile views
  1. I just want him to answer this question. https://talk.automators.fm/t/sharing-all-the-shortcuts-i-use-activated-from-widgets/3052/2
  2. 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).
  3. dfay

    Simple counter for the day

    Yes that was written under Alfred 2 I believe...
  4. This is a great idea and not one that’s supported by other text expansion software as far as I know.
  5. 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.
  6. weird. But would a reformat not bring the issue back when you restore the files?
  7. 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))
  8. 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.
  9. 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.
  10. dfay

    PDF Metadata Editor?

    This is doable with script hooks in BibDesk. https://github.com/derickfay/BibDesk-MavericksTags/issues/1
  11. dfay

    PDF Metadata Editor?

    Save as PDF for research material, Pinboard (with the paid account which archives your bookmarked sites to PDF) for most everything else.
  12. dfay

    PDF Metadata Editor?

    Sure. I've demo'ed Devonthink seriously three times in the past 12 years or so, and have never liked it. The AI seems ok for filing invoices and that kind of largely standardised document but I never found it to work with academic lit. -- it would do things like try to file all my JSTOR downloads together because the cover pages were similar. It predates native tagging and Spotlight (pre-Tiger was it? can't remember) so it probably solved some problems way back but it has never impressed me. UI and menu systems desperately need a cleanup and reorganisation but the developers really don't seem to care (e.g. not fixing Zoom eight years after the original request: https://forum.devontechnologies.com/viewtopic.php?f=2&t=8131 ). I was quite put off by some of their responses on the DT forums. Likewise DevonAgent seems like a tool that has outlived its usefulness - see https://talk.macpowerusers.com/t/the-other-devons-agent-sphere/4913 . The other downside is that DT is really not oriented to creating custom metadata in a very usable way, as far as I can tell. The only reason I could see using it now is to take advantage of document linking that works on MacOS and iOS, but sync doesn't sound that reliable. Long discussion pro and con here: https://talk.macpowerusers.com/t/good-arguments-to-buy-devonthink-pro/3554/67 The core of my academic paper workflow is BibDesk as described above. The underlying BibTeX format and existing tools are definitely not focused on legal citation. But you can use your .bib file with citeproc & CSL which has been pretty aggressively pushed toward accommodating legal citation (not least by Frank Bennett of Nagoya U). Having said that, I have big piles of PDFs that aren't in BibDesk yet -- stuck in various folders which serve as project inboxes, waiting for me to review and organise them. For this stuff, HoudahSpot has been the most valuable addition to my toolkit in the last few years -- it can do everything I might have got from DT while relying on the native file system and tagging. Especially with its Search Bar and some custom templates to limit the search scope. I tend not to use hierarchical tags at the file system level - have never really felt the need. For detailed paragraph-level coding, I do (using MaxQDA) but that's very project-specific. I also rarely if ever use aliases -- BibDesk lets me stick publication records in multiple folders in the app, so I just have a folder or two per project and I can dump the record in every one where it belongs without worrying about the linked files themselves. Besides tagging linked files with BibDesk keywords, my main use of tags is actually for more short-term purposes. Sometimes I'll add tags to files in a project inbox folder as a form of preliminary triage. Or I'll use tags to track status of things - so I have ridiculously long tags like checkedFor2017MedicalExpenses, checkedAgainstZCFolders, Gone0915 (for households that were no longer part of a panel sample in 2009 or 2015). That kind of thing. Combine these with HoudahSpot and Arrange By... and Smart Folders in the Finder and that provides pretty robust file management, for my purposes anyway. Some of this tagging is combined with filing (e.g. ). What else? It's all a work in progress, perpetually. On FileMaker this recent thread may be helpful: https://community.filemaker.com/message/805921
  13. dfay

    Text / Filename Tools

    Nice. I did something similar with a script filter a few years back:
  14. dfay

    PDF Metadata Editor?

    Re: tag - I use it almost exclusively through scripts run from Alfred or Hazel. There are examples using bash and calling it from python in this thread:
×