reveal name from xml and create pdf

troubles again :wink:

is there a way to reveal a name for my indesign from his imported xml?

  • what am i doing wrong because it won’t generate a pdf…
  • are there better ways to pauze a script than a delay???
(*
ADD - NEW ITEM ALERT

This Folder Action handler is triggered whenever items are added to the attached folder.  The script will start the "create template"-workflow and will apply the added file to the corresponding template
*)

property dialog_timeout : 30 -- set the amount of time before dialogs auto-answer.

on adding folder items to this_folder after receiving added_items
	
	tell application "Adobe InDesign CS3"
		activate
		open file "Users:bb:Desktop:cushman test:080351 COVER TEMPLATE.indt"
		delay 3
		tell active document
			repeat with added_item in added_items
				import XML from (added_item as Unicode text)
			end repeat
			
			export to "Users:bb:Desktop:created" format PDF type using "[High Quality Print]"
		end tell
	end tell
	
	
	
end adding folder items to


the xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <image href="file:////myfile></image> <p><logo href="file:////myfile></logo><br> <STORY><TITEL></TITEL>©<kind></kind>©©<date></date></STORY></COVERCUSHMAN></p> <p>so what i need is …? to get the tag <COVERCUSHMAN> from the added item, and use this in indesign to create my pdf…</p> <p>thanks thanks thanks!!!</p>