Saving in Acrobat Professional

Here is my script:

tell application “Adobe Acrobat 7.0 Professional”
activate
set doc to document 1
save doc to (“Macintosh HD:Users:jj:Desktop:test46.txt”) using “Text (Plain)”
end tell

Here is the dictionary entry from Acrobat Professional on the Save command:

save‚v : Save the document.
save reference : The document to be saved.
[to file specification] : An “alias” or “file” path of the new document (Save As…).
[using reference] : Conversion class object to use. Converts to non-PDF formats.
[linearize boolean] : Whether the document should be saved as linearized.

The problem I am having is that no matter what I put after “using…” it saves the open PDF document as a pdf.

Does anyone know how to make it save as Plain Text or Acrobat’s Accessible text format? If works perfectly if I do it manually within Acrobat but I would like to automate it. Thanks in advance.

JJ

Model: MacBook Pro
AppleScript: 2.1.1 (81)
Browser: Safari 417.8
Operating System: Mac OS X (10.4)

JJ, i don’t know if this is going to be of any use to you. I still have the imprint of my keyboard on my forehead from trying to understand adobe acrobats dictonary terms (never seems to be quite as straight forward as you would expect) well at least for a beginner like me. Here’s some thing I found in my experiments with this function. These appear to work although I’ve not had a great deal of time to test any further than that. The text options did not work but this could well be down to the PDF’s content as doing this manually did not give me the expected results either. The best of luck to you and if you do make any headway do post back.Try like these tests

property MyFileName : ""
set PDFFile to choose file with prompt "Where is the PDF file?"
set TIFFFolder to choose folder with prompt "Where to save the file?"
set MyName to "Please type in the new File name."
set ReName to text returned of (display dialog MyName default answer MyFileName with icon note)
tell application "Acrobat 6.0.2 Professional"
	activate
	open PDFFile
	set NewFilepath to (((TIFFFolder) as string) & ReName & ".tif")
	save front document to file NewFilepath using conversion "com.adobe.acrobat.tiff"
	close front document
end tell
property MyFileName : ""
set PDFFile to choose file with prompt "Where is the PDF file?"
set PNGFolder to choose folder with prompt "Where to save the file?"
set MyName to "Please type in the new File name."
set ReName to text returned of (display dialog MyName default answer MyFileName with icon note)
tell application "Acrobat 6.0.2 Professional"
	activate
	open PDFFile
	set NewFilepath to (((PNGFolder) as string) & ReName & ".png")
	save front document to file NewFilepath using conversion "com.adobe.acrobat.png"
	close front document
end tell

property MyFileName : ""
set PDFFile to choose file with prompt "Where is the PDF file?"
set JPEGFolder to choose folder with prompt "Where to save the file?"
set MyName to "Please type in the new File name."
set ReName to text returned of (display dialog MyName default answer MyFileName with icon note)
tell application "Acrobat 6.0.2 Professional"
	activate
	open PDFFile
	set NewFilepath to (((JPEGFolder) as string) & ReName & ".jpg")
	save front document to file NewFilepath using conversion "com.adobe.acrobat.jpeg"
	close front document
end tell

property MyFileName : ""
set PDFFile to choose file with prompt "Where is the PDF file?"
set HTMLFolder to choose folder with prompt "Where to save the files?"
set MyName to "Please type in the new File name."
set ReName to text returned of (display dialog MyName default answer MyFileName with icon note)
tell application "Acrobat 6.0.2 Professional"
	activate
	open PDFFile
	set NewFilepath to (((HTMLFolder) as string) & ReName & ".html")
	save front document to file NewFilepath using conversion "com.adobe.acrobat.html-3-20"
	close front document
end tell

property MyFileName : ""
set PDFFile to choose file with prompt "Where is the PDF file?"
set TextFolder to choose folder with prompt "Where to save the file?"
set MyName to "Please type in the new File name."
set ReName to text returned of (display dialog MyName default answer MyFileName with icon note)
tell application "Acrobat 6.0.2 Professional"
	activate
	open PDFFile
	set NewFilepath to (((TextFolder) as string) & ReName & ".txt")
	save front document to file NewFilepath using conversion "com.adobe.acrobat.plain-text"
	close front document
end tell