CaseLeaf

Handbook / The `unmark` command

The unmark command

One comment was made on the wrong sentence and has to come off.

Removes one mark, named by the sheet it is on and its place on that sheet. Deliberately one at a time: removing marks in bulk is how a review gets lost, and there is no remove everything here for the same reason.

How you run it

caseleaf unmark report.pdf --page 1 --index 2

What each part means

In full, every part it will take:

caseleaf unmark <file> --page <n> --index <n>
part what it is for
<file> The PDF to work on, as a path, such as report.pdf beside you, or the full path to it. This command writes to it, so keep a copy if the original matters.
--page Which sheet, counting from 1, so --page 4 is the fourth sheet as it sits in the file, whatever number is printed on it. This command needs it, together with --index: the two name one mark between them.
--index Which mark on that page, counting from 0.

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.

{
  "removed" : "Note",
  "written" : true
}

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 "unmark" on "/path/to/report.pdf" ¬
        options "--page 1 --index 2"
end tell

All the commands · Asking from a script · Contents