![]() I named this script preview.sh, and I run it like this to go directly to page 20 in the PDF (which is named book.pdf):Īs usual, there are probably other/better ways to do this, but (a) I can confirm that this works, and (b) a lot of other things I tried didn’t work. Tell application "Finder" to open posixFile To open Read mode, choose View > Read Mode, or click the Read Mode button in the floating toolbar. It turns out that Preview isn’t very scriptable, so I have to jump through a few hoops to get to the desired page: Anti Terrorism Level 1 Post Test Answers From the At Level 1 Pretest Answers - Level 1 Anti-Terrorism Awareness. If you double-click a PDF, jpg, or png file on Mac without changing settings, it will automatically open in Preview. ![]() I’m currently generating my new book on “functional programming in Scala” as a PDF using a combination of Pandoc and LaTeX, and as a result it feels like I’m opening the same PDF file about 100 times a day.Ī little while ago I decided it would be really nice if I could go directly to the page I’m interested in when the PDF opens, so I cobbled together a Unix shell script and some Applescript that (a) opens the PDF in the Mac Preview app, and (b) goes directly to the page I’m interested in. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |