Jump to content

Banana DNtp


Recommended Posts

Posted

Hi, I just updated my note taking workflow for DEVONthink 3. It's aimed at withing with PDF files, annotations and making notes with markdown. Here the the readme:

 

Alfred Keywords:

  1. dn create/open associate markdown file
  2. dns associate an exsisting markdown file with a PDF
  3. dp open selected PDF with default application
  4. dpc open selected PDF with Clearview
  5. dph open selected PDF with Highlights
  6. dpp open selected PDF with Preview
  7. dm open selected markdown with default application
  8. dmv open selected markdown with Marked 2

To configure this workflow you will need to alter the "viewer" variables in the "Args and Vars". If you leave viewer unset the system default will be used. Please change the keywords to whatever makes sense or delete unnecessary launchers.

The commands can now be configured to support multiple content types. The main reason this is necessary is because DEVONthink uses 2 types for PDF, one with text (PDF+Text) and one without (PDF Document). It's a bit annoying if your're writing a plugin like this. Anyway, the "content_type" will now accept multiple semicolon separated values.

This workflow supports my process, which is,:

  1. Use a PDF viewer with good support for annotations to directly highlight, underline and make notes on a papers content. I particularly like Clearview for this, although, Highlights has merits too.

  2. Export the notes into a convenient format for editing and expansion of and further comment on the notes already made and embedded into the PDF.

  3. Finally, pull together the different notes into a cohesive form.

This helps me with the first two items; providing the following features:

  1. Extra shortcuts for launching specialised PDF viewers, with the dp (default), dpp (Preview), dpc (Clearview) and dph (Highlights) keywords.
  2. Creation and association (using the URL property of the PDF's record) of markdown files in a subgroup, called 'pdf notes', which is a sibling of the PDF in question. Using the dn keyword.
  3. dns (DEVONthink Pro notes set) can be a nice shortcut with Highlights; it can export annotations as markdwon. It will associate and existent markdown file with the selected PDF. It is a two step process: select the PDF, activate dns and select the markdown file; finally click Ok. The markdown file is moved to sibling "pdf notes" group.
  4. Opening the markdown file via the hyperlink, wherever it has been moved to. Using the dn keyword.
  5. Opening markdown with two keywords: dmv and dm. The first, dmv, is intended to open the markdown file with a viewer; Marked 2 for example. The second is intended to open it in an editor; the "viewer" variable is unset so the system default will be used.

The features described in (1) and (4) use the current selection in DNtp to decide which PDF or markdown file to work on. The other three, (2), (3) and (4), do so too but indirectly; the PDF which is associated with the markdown should be selected to open or set the markdown association.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...