Print last page of a document osx

Asked by jt on 2010-02-02

I am trying to pass the last page value to the print dialog screen. How can i obtain that variable?

This particular document changes it's page length daily and the only page that needs to be printed is the last page. Am i able to somehow fill in the "from: ( ) to: ( ) with the last page of the document?

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

Since Sikuli in the moment is not able to "read" (OCR to be implemented) information from an image, the easy way is not possible (read the input from a relevant info field an type() it into the print dialog).

for now try the following:
Click yourself into a situation, where you can count how often you have to scroll down until you reach the end of the document (try the page preview, where you can click in the top menu area) and calculate lastPage. then type(str(lastPage)) into the fields of the print dialog.

for some hints look at the examples and howto's on the Sikuli doc page.

may be helpful:

jt (jtoktas) said : #2

Thank you for your help. Let's see if i can make it work.