Getting the Title from document properties of PDF in Acrobat

I have PDFs coming out of a prepress workflow (ApogeeX). The name of the originating document (eg: “81450 Woodruff March 05”) is in the Description:Title field of the document properties. This is also the name that shows in the title bar of the window. However, the name of the file itself is something like “preflightoutput-821441044”.

If I do:

tell application “Acrobat 6.0.2 Professional”
set theTitle to the name of document 1
display dialog theTitle
end tell

I get the file name, not the title of the window as indicated in Acrobat’s dictionary.

I would like to be able to save the document naming it with the title from document properties rather than the obtuse file name, but can’t figure out how to grab it.

Any ideas?

Thanks,

T.

I’m not sure how you are getting the window title to match the Description:Title field. However, to retreive the title of a window:

tell application “Acrobat 6.0.2 Professional”
set theTitle to name of PDF Window 1
end tell

To retreive the Description:Title field:

tell application “Acrobat 6.0.2 Professional”
set doc_title to get info of document 1 key “Title”
end tell

I’m not sure how the window title is being manipulated either, whether it is something in the PDF from Apogee or an Acrobat thing.

That aside however, the “get info” is exactly what I needed. Now I can resave the doc with that name.

Thanks!

T.