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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Indata won't import pictures correctly???

Status
Not open for further replies.

ultraviolet79

Technical User
Aug 26, 2005
1
CA
Hi, I hope someone can help me...

I'm trying to use Indata to create a catalogue with pictures. (I'm using Windows 2000.) I've used it many times for text only, but this is the first time trying to import pictures...

The text imports fine, but the photos won't. In the code, if I specify to import a SPECIFIC picture, it imports that picture (in this case, JoeSmith.) But I'd like it to automatically pick the correct picture, based on the field information under "Picfile" from the excel document. (That's what Indata is supposed to do, right?)




Here is my prototype code:

«fields Last, First, Title, Picfile, Building, City, Time, Know, Snack
«First» «Last»
«Title»
«set picturefolders to “INDATAfinalphotos\”»«set filename of picture 1 to JoeSmith»
«Building», «City»
«if Time is not empty»«Time»«end if»
«if Know is not empty»«Know»«end if»
«if Snack is not empty»«Snack»«end if»





Here are my fields from excel: (Each field is separated by tabs)

Last First Title Picfile Building City Time Know Snack
Smith John Manager JoeSmith Bluestone Calgary 9 months I was a drummer in a rock band. Count Chocula



Thanks in advance!
 
ultraviolet79,

I only guess ... maby you need to change:

«set filename of picture 1 to JoeSmith»

to

«set filename of picture 1 to «Picfile»»

??

and why you don't close first line:

«fields Last, First, Title, Picfile, Building, City, Time, Know, Snack

with

»

??
robin

Scripts for AdobeFamily
gg 3753393
Skype: indesignscripts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top