Batchprint Acrobat 6.0 Professional

Hello, I am a absolute Newbie in things AppleScript!

I try to write a Script, which contol a desktop folder and print the pdf`s from the folder with Acrobat 6.0 Professional.
Who can help me with the production of the Scriptes?
I thank you very much in advance!

mikelchris

Hi,
here is my script but it doesnt work! javascript:emoticon(‘:cry:’)

property Ordner : "MacOS X:Users:michael:Desktop:pdf:"

property ZielOrdner : "MacOS X:Users:michael:Desktop:ausgabe:"

-- In diesem Handler steht die Aktion, die auf eine
-- Datei angewandt werden soll

on DoDatei(Datei)
	
	tell application "Acrobat 6.0 Professional"
		activate
		tell application "System Events"
			keystroke "p" using {command down}
			keystroke return using {command down} -- return key
		end tell
	end tell
	
end DoDatei

-- Der Idle-Handler überprüft alle 60 Sekunden, ob
-- in den ausgewählten Ordner Objekte bewegt wurden
-- Falls ja, wird die Datei bearbeitet und dann in einen
-- anderen Ordner bewegt

on idle
	
	tell application "Finder"
		
		set dateiliste to every file of Ordner
		
	end tell
	
	if length of dateiliste > 0 then
		
		repeat with i from 1 to length of dateiliste
			
			DoDatei(item i of dateiliste)
			
			tell application "Finder"
				
				move item i of dateiliste to ZielOrdner
				
			end tell
			
		end repeat
		
	end if
	
	return 60 -- alle 60 Sekunden aufrufen
	
end idle

-- Der Open Handler wird nur gerufen, wenn Dateien auf
-- dieses Skript bewegt wurden

on quit
	
	display dialog "Wirklich beenden?" buttons {"Abbrechen", "Skript beenden"} default button "Abbrechen"
	
	if button returned of result = "Skript beenden" then
		
		-- Hier können Abschlußarbeiten erfolgen
		
		continue quit
		
	end if
	
end quit

-- Dieser Handler wird ausgeführt, wenn das Skript mit
-- Doppelklick gestartet wird. Der Benutzer wählt einen
-- zu überwachenden Ordner aus

on run
	
	if Ordner = 0 then
		
		set Ordner to choose folder with prompt "Ordner überwachen:"
		
	end if
	
	if ZielOrdner = 0 then
		
		set ZielOrdner to choose folder with prompt "Zielordner:"
		
	end if
	
end run

i use the batch processing under the advanced menu of Acrobat pro
Print all

it lets you pick a folder and good to go

is it possible to script this batch print so it run automatically.

i have never tried it

but sounds like it should work

you might be able to UI script it

but in that case your java would prolly be more effecient

ok ill give it a go. :smiley: