Re: Adobe Acrobat batch process (Newbie)
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