// LinkExport-Pro_1a.jsx //DESCRIPTION: Exports some information about placed images in the active Document into a textfile in the same folder as the document. // The values are tab-separated, so that the content of the file can be copied to Excel via Clipboard. // The exported textfile has the ending ".txt". // Script by Martin Fischer (www.hilfdirselbst.ch) // var myDoc = app.documents[0]; if (myDoc.saved == false) { alert("Error.\rYou must first save your document."); exit(); } var myDocName = myDoc.name.split(".indd")[0]; var myTXT_File = myDocName + '.txt'; var myPath = myDoc.filePath + "/"; var myCreator = "R*ch"; var myType = "TEXT"; var theFiles = myDoc.links; var myData = "link\tpath\tpage\twidth\theight\t% vertical\t% horizontal\teff. PPI\r"; var f = new File( myPath + myTXT_File ); f.open( 'w', myType, myCreator ); f.writeln( myData ); for (myCounter = 0; myCounter