How to open pdf with Preview app in named destination programatically?

Opening a pdf file with the Preview app lets me navigate across sections using the entries in the Table of Contents.


How can I open the pdf file in a specific named destination from command line or using Apple Events programatically?

Replies

Will this do what you want?


open -a Preview.app <file>.pdf


If Preview.app is your default reader for pdf files on your system, you should be able to use


open <file>.pdf

That opens the pdf file in the last page it was opened.

I would like to apecify the named destination in the arguments of the open command. Is there a way to do that?


Something like open -a Preview.app --args #namedDestination