Extract text from pdf in script

Hi!
I can extract the plain text of a pdf document using Automator’s Extract PDF Text.

But, how can I call the Extract PDF Text application in a script?
F.e. i have a folder Users/mac/Library/Preferences/myapp/Local/Data
which content is file1.pdf, file2.pdf, file3.pdf
I want to script run with a result file1.txt, file2.txt, file3.txt in same folder without any dialogs and promts.
Thanks for your any input.

Dereck.

I have the same question. Right know I have a service that extract the text of a pdf using automator action but how to do that doing AS?

Joaquín.