You must save the PDF to your hard drive, jump drive or network. 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. Preview is installed on all new Macs this allows you to add annotations to a PDF file. Tell application "Finder" to open posixFile However, when you click on More Options on the top right hand corner, you will see a new Open in default app option which you can open the. pdf link in Markdown file, Obsidian will still open the. It turns out that Preview isn’t very scriptable, so I have to jump through a few hoops to get to the desired page: Simply go to Settings -> Plugin, enable Open in default app. 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 |