CaseLeaf

Handbook / The `marks` command

The marks command

A reviewer returns a contract covered in comments and you need them as a list you can work through, not as a file you scroll.

Lists the marks on a document with what each one says and what words it covers. It is the one people reach for most: a review arrives as marks, and this is how the review is read without opening it. Use it to collect comments into a report, to check that marks survived a transfer, or to find the one note somebody left on sheet forty.

How you run it

caseleaf marks report.pdf

What each part means

In full, every part it will take:

caseleaf marks <file>

The document, and nothing else.

What comes back

Asked of a short sample document, it answers as below. The sample has eight sheets, a highlight and a note left by a reviewer, a web link, a small table, two pictures and one form field already filled in.

{
  "marks" : [
    {
      "bounds" : {
        "h" : 26,
        "w" : 358,
        "x" : 72,
        "y" : 690
      },
      "comment" : "Check this wording against schedule B.",
      "index" : 1,
      "kind" : "Highlight",
      "page" : 1,
      "says" : "A clause about force majeure, and what follows from it."
    },
  … and the rest of the answer

The same thing from AppleScript

Everything above can be asked for from a script instead. There is one AppleScript command, perform: on names the document, and options takes the rest exactly as you would type it.

tell application "CaseLeaf"
    perform "marks" on "/path/to/report.pdf"
end tell

All the commands · Asking from a script · Contents