Need Applescript that opens pdf and sets zoom to 100

Hi everyone. I’m a Flash developer in need of creating an applescript file that does the following:

  1. opens a PDF file, and
  2. sets the zoom level of the PDF to 100%.

The pdf document lives at the same location as the actionscript .app file. I’ve been able to acheive step one with this script:

tell application “Finder”
activate
open document file “my_document.pdf” of folder “fscommand” of disk “my_disk”
end tell

I also was directed to this document, which specifies parameters for opening pdf files: www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf

Sorry for my ignorance on this. Can anyone tell me what the code should look like? I just can’t get the syntax right…

Thanks so much,
David

Model: iMac G5
AppleScript: Script Editor 2.2.1
Browser: Safari 525.27.1
Operating System: Mac OS X (10.5)

I’m assuming you mean open the PDF in Acrobat.

set p2d to path to desktop as text
tell application "Adobe Acrobat Professional"
	tell document 1
		activate
		open (p2d & "TestFile.pdf")
		zoom PDF Window 1 to 100
	end tell
end tell