Article View: adobe.scripting.indesign
Article #1465Re: IMPORT GRAPHICS ID CS3
From: jongware
Date: Tue, 10 Feb 2009 20:10
Date: Tue, 10 Feb 2009 20:10
18 lines
1789 bytes
1789 bytes
I could write such a script when pressed, but for that I'd need a lot more information -- inputs, outputs, what kind of text it needs to place, and much more.
I don't have experience with scripts ...
I'm not "into" writing 3rd party scripts, but there are people who hang out here that might pick it up for you.
All in all, it doesn't seem too daunting.
* I'd start with gathering the file information. How does JS handle folders and files? Never needed those before, but it probably gets them as string arrays. Check up on the 'folder' and 'file' methods in any decent JS help. Write a script that loads and displays the file names found.
* Given a file name and path, importing this and placing as a graphic should be easy. The JS help from ID will guide you through it -- Adobe's JS manuals should help you with that (http://www.adobe.com/devnet/indesign/ <http://www.adobe.com/devnet/indesign/> -- click 'Documentation').
* How is decided which picture goes where with the text? A placeholder? A file name? A numeric id? Place the text into ID, give it some basic layout, and write a script that locates the placeholder.
* Glue those scripts together, and let it rip.
Technical Details
Message-ID:
<59b7d240.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b7d240.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,24c4ff0b646256c8 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: jongware@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: IMPORT GRAPHICS ID CS3 Message-ID: <59b7d240.2@webcrossing.la2eafNXanI> Date: Tue, 10 Feb 2009 12:10:41 -0800 References: <59b7d240.-1@webcrossing.la2eafNXanI> Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit