• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
GUI Scripting and Acrobat 6 Pro
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GUI Scripting and Acrobat 6 Pro


  • Subject: GUI Scripting and Acrobat 6 Pro
  • From: Sean Mills <email@hidden>
  • Date: Thu, 11 Nov 2004 14:28:51 -0500

Hello,

I am trying to automate the process of combining multiple pdfs into a single pdf. The task is quite straightforward in Acrobat: You first select File -> Create PDF -> From Multiple Files..., then select the relevant files in the dialog box that appears, and hit OK.

There are two checkboxes in the dialog box. I want to ensure that one of them is checked ("Include all open PDF documents"), and the other unchecked ("Include most recent list of files to combine").

Here's my problem: using GUI scripting I can select the appropriate menu item, but I can't toggle the checkboxes if needed. I also can't click *any* button in the dialog box. The strange thing is that I can see checkboxes and buttons getting clicked, but the clicks don't seem to register. What am I doing wrong?

tell application "Acrobat 6.0.2 Professional" to activate

tell application "System Events"
tell process "Acrobat"
tell menu "File" of menu bar item "File" of menu bar 1
click menu item "From Multiple Files..." of menu "Create PDF" of menu item "Create PDF"
delay 2
end tell -- this works OK

tell window 1 -- "Create PDF from Multiple Documents"
if (value of checkbox 1) is 1 then --"Include most recent list of files to combine"
click checkbox 1
end if

if (value of checkbox 2) is 0 then --"Include all open PDF documents" click checkbox 2
end if
end tell
end tell
end tell



Regards,


Sean Mills

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: GUI Scripting and Acrobat 6 Pro
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Re: Exporting pdf to jpeg using preview
  • Next by Date: AppleScript Syntax References -- WAS: Re: strcat in applescript?
  • Previous by thread: Re: strcat in applescript?
  • Next by thread: Re: GUI Scripting and Acrobat 6 Pro
  • Index(es):
    • Date
    • Thread