• 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
Re: Adobe Acrobat batch process (Newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adobe Acrobat batch process (Newbie)


  • Subject: Re: Adobe Acrobat batch process (Newbie)
  • From: Bernard Azancot <email@hidden>
  • Date: Tue, 8 May 2007 10:59:28 +0200


Le 7 mai 07 à 10:28, Rob Stott a écrit :

Personally, I've always found Acrobat a bit light on AppleScript support. Luckily, you can get a lot more done using JavaScript, and you can use 'do script' from AppleScript to execute a JavaScript. I always find it a bit shaky but you can get some good results with care. Here's a very rough example to get you started;

on open theFiles
	tell application "Adobe Acrobat Professional"
		--repeat through the dropped files
		repeat with theFile in theFiles
			--open the file
			open theFile
			tell front document
				--tell the open document to execute a javascript
				do script "app.execMenuItem(\"ReduceFileSize\");"
			end tell
			close front document saving no
		end repeat
	end tell
end open


Yes, you're right, Rob. Acrobat AS support is rather poor.
JavaScript does the work.

Thanks a lot, Rob
Cheers

--
Bernard Azancot
email@hidden





_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Adobe Acrobat batch process (Newbie)
      • From: James Nierodzik <email@hidden>
References: 
 >Adobe Acrobat batch process (Newbie) (From: Bernard Azancot <email@hidden>)

  • Prev by Date: Strange error message when using script bundle, stack overflow?
  • Next by Date: Script Acrobat 8 Pro to Replace Pages
  • Previous by thread: Adobe Acrobat batch process (Newbie)
  • Next by thread: Re: Adobe Acrobat batch process (Newbie)
  • Index(es):
    • Date
    • Thread