[texworks] SCRIPTING: get current poppler page number
Paul A Norman
paul.a.norman at gmail.com
Fri Oct 22 02:49:58 CEST 2010
P.S re-the error mesage, we may be missing a boolean from the 'command line':
open POSIX file "$basefname.pdf" options "page=$page"
The one about invisibility or not of of the window
The APi is the whole Sdk portion - html help, (many mb) the windows
one includes the apple referecnces I quoted.
On 22 October 2010 13:46, Paul A Norman <paul.a.norman at gmail.com> wrote:
> Thanks for that,
> I am also out of my league with MAC stuff but intuitvely :) something
> towards (I know its wrong) ...
> using a second parameter to be the page number - not sure what
> "basename" is should we have say pagenumber or is baseanme a directive
> of some sort? `pwd' looks like it returns the path from a system call
> name=$(basename "$1" .pdf)
> page=$(basename "$2")
> /usr/bin/osascript << END
> tell application "Adobe Acrobat Pro"
> open POSIX file "$basefname.pdf" options "page=$page"
> end tell
> Yep, I too await those who know how to peel it right and spit out the pips :)
> On 22 October 2010 01:41, Bruno Voisin <bvoisin at me.com> wrote:
>> Le 21 oct. 2010 à 14:39, Bruno Voisin a écrit :
>>> (I imagine the SDK prohibits copying the code here).
>> I meant the EULA, not the SDK, sorry.
More information about the texworks