Applescript and Adobe Acrobat Prefessional

Hi,

i´m beginning to start with Apple Script LEOPARD.
I have scripted few lines and dont understand why the script will stopped.

here the script:

set Datei to choose file
tell application “Adobe Acrobat Professional” open Datei
find text string “01.07.08”
select text “01.07.08”
end tell

I want that the Script will open a PDF Dokument an search the date 01.07.08.
When it found then select the date.

no more.

But the Script will break by the line find text.

Can someone help.

Thanks

michael m.,

I do not have Acrobat installed on my Mac, but I guess you have to address the opened document in your code to get it to work:


set Datei to choose file
tell application "Adobe Acrobat Professional"
open Datei
tell document 1
find text string "01.07.08"
select text "01.07.08"
end tell
end tell