an applescript for running an acrobat batch process

hi everybody,

I hav done a little script on applescript for automatically run a batch process on Adobe Acrobat 7,0 professional… I used the GUI Elements :

   
tell application "Adobe Acrobat 7.0 Professional"
	activate
end tell
	
	tell application "System Events"
		tell process "Adobe Acrobat 7.0 Professional"
			tell menu bar 1
				tell menu bar item "Advanced"
					tell menu "Advanced"
						click menu item "Batch Processing..."
						delay 1
						tell window "Batch sequences"
							click button "Run sequence"
						end tell
					end tell
				end tell
			end tell
		end tell
	end tell
	

well when i run the script it opens Acrobat and the batch processing window, but it doesn’t make the click button action “run sequence”… I`ve got an error message : “System Events error : NSReceiverEvaluationScriptError: 4” :frowning:

Can anyone help me pleeease :stuck_out_tongue:

I think the key here is you have to say
tell process ‘‘Acrobat’’

(rather than 'tell application process “Adobe Acrobat…”)

Hi

I’ve come across this problem with the batch window in acrobat before i’m sure of that!!
Your script didn’t work for me Anthony although that maybe just the way our machines are set up which makes a huge difference when GUI scripting.
However on to the bad news.
This scriptlet clearly on my mac presses the button “Run Sequence” but nothing happens!!
Think it maybe a bug.

tell application "Adobe Acrobat 7.0.5 Professional" to activate
tell application "System Events"
	tell process "Acrobat"
		tell menu bar 1
			tell menu "Advanced" of menu bar item "Advanced"
				click menu item "Batch Processing..."
				tell application "System Events"
					tell window "Batch Sequences" of process "Acrobat"
						delay 0.5
						tell button -5 to perform action "AXPress"
					end tell
				end tell
			end tell
		end tell
	end tell
end tell

Like i say our different setups may cause you to alter this script to fit a bit!