I search through the Board but found no solution on this issue. Hope someone can help me to solve this problem.
This should give you the basic idea.
tell application "Adobe Acrobat 7.0 Professional"
tell active doc
-- Get a variable from AppleScript
set Page_Count to count of pages
do script "app.alert( 'This PDF has " & Page_Count & " pages.' );"
I think what I have confused is the usage of quotes (both ’ & "). I did try something similar before but received an error because I have added in extra quotes as below (after “This PDF has” and before “pages…”:-
I will try to figure them out later. Thanks again!