Drive a batch processing in Acrobat 6 pro - initial view

I have to set the documents properties (initial view’s setting) of many PDF file before sending to client.

I record a sequence with good setting, but i am not able to select the good sequence in the list of sequences in the dialog box “Batch Sequence”… and i can’t start the process

How can i ???

Then, if you have a good idea to save the “initial view’s settings” (like… show: pages panel and page, page layout: single page, magnification: fit page, etc.) in a selection of PDF’s files (like drag’n drop on script, without the batchprocessing technology)… you are welcome !!

This is were i am …

tell application “Acrobat 6.0.1 Professional” to activate
tell application “System Events”
tell application process “Acrobat”
click menu item “Batch processing…” of menu “Advanced” of menu bar 1
tell list 1
click “open setting”
click button “Run Sequence”
end tell
end tell
end tell

I am trying to do something similar (as posted here: http://bbs.applescript.net/viewtopic.php?t=9272)

I would like to know how you are overriding the application’s preference for zoom view and saving the page zoom at the document level.

Thanks

Hi Jay

Open your PDF
File > Document properties
Click on “initial view” on the side of window
then adjust the magnification to “fit page”
Accept and save

That’all, now your file pref overight the application’s pref
(if you have many PDF to set like this, create one new “Sequence” and use “Batch processing” in menu “Advanced”)
Its fantastic

Please if anyone have and idea to make this operation with Applescript…

Thanks

I can’t believe I overlooked that! I’ve been in that dialog box about 100 times since Friday…so focused on the “pages and thumbs” view I didn’t even acknowledge the other box.

Anyway, as per my other post, I have a way to do what you (we) need to do via applescript…but it may/maynot be “dangerous” to the PDF.

Using your information, I will post solution once I do some testing. So far, it works!

Wish me luck!

Testing done, and this doesn’t seem to do do any “permanent” damage to the .pdf I’ve only done tests on my system, with pdf’s written by me with acrobat 6 distiller.

What is does is modifies the string within the pdf where the view is set to “thumbs and pages”, but doesn’t set the zoom. It seems that the “zoom” object is created by itself when you set it, and isn’t appended to another object.

TEST ON DUPLICATE FILES! THIS MAY PERMANENTLY DAMAGE YOUR PDF FILES!

We’ll, here it is (using someone elses “search and replace string” script found on the site) - it’s a drag n drop:

Did I mention, TEST ON DUPLICATE FILES! THIS MAY PERMANENTLY DAMAGE YOUR PDF FILES!

on open (aliasList)

set textToFind to "/Catalog"
set textReplacement to "/Catalog/PageMode/UseThumbs"

repeat with i from 1 to aliasList's length
	
	set aliasFile to aliasList's item i
	
	--   Filter out folders: 
	-- 
	if ((aliasFile as string)'s character -1 is not ":") then
		
		set fileRef to open for access aliasFile with write permission
		try
			
			set fileContents to read fileRef
			
			--   note: case-sensitive 
			-- 
			set fileContents to my ReplaceText(fileContents, textToFind, textReplacement)
			
			--   clear the file's contents 
			-- 
			set eof fileRef to 0
			
			write fileContents to fileRef
			
			close access fileRef
			
		on error e number n from f to t partial result p
			try
				close access fileRef
			end try
			error e number n from f to t partial result p
		end try
	end if
	
	tell application "Acrobat 6.0 Professional"
		activate
		open aliasFile
		close document 1 saving yes
	end tell
end repeat

beep 2 -- all done 

end open

on ReplaceText(s, f, r)
set astids to AppleScript’s text item delimiters
try
set AppleScript’s text item delimiters to f
set s to s’s text items
set AppleScript’s text item delimiters to r
set s to s as string
set AppleScript’s text item delimiters to astids
return s
on error e number n from f to t partial result p
set AppleScript’s text item delimiters to astids
error e number n from f to t partial result p
end try
end ReplaceText

Please let me know your results!