On Aug 30, 2005, at 12:45 AM, Vince wrote:
Some dude working in my company needs a program that does this-
- There are over a 100 PDF files in some folder on a Mac Machine
- The program to be written is supposed to invoke Adobe Acrobat
Professional 7 (Mac version) and open each file from the directory
- Once each file is opened in Acrobat 7, it is supposed to push
Alt + E
(or similar) and then 'n' (or similar) in order to enable
commenting on the
PDF file.
- The program is then supposed to push Alt +F and then 'S' to
save the
file
- This is to happen for all the files in that folder.
Someone supposedly told the dude that this script in Perl was easy
to write!
It depends on how scriptable Acrobat is. If it's scriptable you can
script it at a high level with any OSA-compliant tool, such as
AppleScript or Perl. If it's not scriptable, I think you can still
send "raw" AppleEvents.
I was pointed to this group and this is what I think I need to do:
a) Find the equivalent of Win32 package for Mac
Mac::Carbon is the rough equivalent. It's not the same API, mind you
- not even close. It's equivalent in that it provides the same low-
level access to Carbon that Win32 provides for the Windows API.
b) Write the program
The requirements for that are the same as they are on Windows: A text
editor and some time. :-)
a) I've pretty much never worked on a Mac and don't possess one. In
order to
develop programs I use a PC. I was wondering if Macperl could be
simulated
on a PC?
No, it can't. You need a Mac.
Frankly though, I think this "dude" might be barking in the wrong
forest. Doesn't Acrobat have built-in batch processing? I'd be
looking at that, instead of trying to drive it with an external script.
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org