Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Indesign Scripting

Status
Not open for further replies.

magmo

Programmer
May 26, 2004
291
SE
Hi


Is there anyone that has experience of working with Indesign scripting (javascript/vba) that like to share it's conclusions?


Regards
 
I wrote a couple of scripts in vb/vbscript. I can't help with much, but here's what I learned:
[ul]
[li]The object model confuses me to this day. I'm sure it makes perfect sense once you understand it, but I could never really access certain things (like all tables in a document, for example).
[/li]
[li]There are definitely some things you simply can't do -- you can do them with the mouse or a keyboard shortcut, but not via scripting.
[/li]
[li]The Adobe forums (there's an ID scripting forum) are the absolute best source of help/info that I could find.
[/li]
[li]Raw VBScripts -- text files with .vbs extensions -- ran WAY faster than compiled VB or the VBA console. To the tune of 40 or 50 times faster, for many things. This was counterintuitive to me, but after I figured it out I just used raw text files.
[/li]
[li]For all my complaints, I shaved literally hundreds of hours off of my project. My little scripts to localized table formatting, trying to mimic table "styles," sort of, were really helpful.
[/li]
[/ul]
Note that all of this advice relates to ID 2.0, not CS, and things certainly could have changed between versions.
 
Scripting with Indesign is Great I use it all the time, it can be a huge time saver for some tasks. I had a task yesterday where I had to create a book with 120 pages and 120 graphics, one graphic per page. I ran a script that I had and the task was done in under 3 minutes generating all the pages and placing the graphics, without the script it would have taken CONSIDERABLY longer.

As mentioned earlier the adobeforums.com site has an excellent scripting form. Olav Kvern is the king of Indesign scripting and answers questions there frequently he has also written some excellent tutorials and sample scripts that can be downloaded.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top