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!

A simple script for InDesign CS2

Status
Not open for further replies.

jet3399

Technical User
Mar 7, 2007
1
DE
I have what I thought was a very simple problem, but it turns out it's quite difficult for me to solve.

I have a HUGE document (about 900 pages) and I need to insert and anchor about 7000 pictures into that text.

Currently I drag each picture from Explorer into the InDesign window where it becomes a floating image.

I already changed the Basic Graphics Frame settings so the text wrapping, border etc is correct.

But I still need to insert and anchor each picture by hand.

All I need is a macro that will automate the following for me:

- "CUT" a selected free-floating picture that is already on the worksheet ("CTRL-X")
- Switch to Type Tool ("T")
- Insert ("CTRL-V")
- "Find" the next paragraph with a paragraph style named "Label Info"
- "Left Arrow" (because the whole paragraph will be marked after the search action and I want the cursor to be at the beginning)
- Switch to Selection Tool ("V") so I can select the next image and start from the beginning

In Word or most other programs, recording a macro for this job would be a matter of about 1 minute, but I just can't figure out how to do it in InDesign.

I looked into scripting, but instead of just providing a simple macro recorder, I am supposed to read a 180-page "introduction" and then write and compile a script.

I really really hope that there is a shortcut...

Any help will be greatly appreciated!
Thanks!
Jan
 
You might consider a 3rd party macro recorder like PerfectKeyboard at I've used it for years with PageMaker and now InDesign CS2.
Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top