Hallo,
Hier noch ein Skript von Dave Saunders aus dem Adobe-Forum. Aber ich glaube da gibt es noch ein anderes welches mir aber jetzt nicht mehr einfällt. Beim diesem Skript hier wird ein Zeichenformat namens »CurrentDate« vorausgesetzt. Beim Ausführen des Skripts wird bei allen Instanzen, die mit diesem ZF formatiert sind, das aktuelle Datum eingefügt. (Siehe erste Zeilen Auskommentierung im Skript)
Code //DESCRIPTION: Update Date in Active Document /* Updates all instances of current date in a document to reflect the actual date when the script is run. Depends on character style named "CurrentDate" -- does nothing if document lacks said style. */ if (app.documents.length == 0) { exit() } myDoc = app.activeDocument; //Global var myStyle = myDoc.characterStyles.item("CurrentDate"); if (myStyle == null) { exit () } // If we get here, we have work to do var myDate = getDateString(); // Use Find/Change across document to update date: app.findPreferences = app.changePreferences = null; myDoc.search("", false, false, myDate, {appliedCharacterStyle:myStyle}); function getDateString() { var today = new Date(); var myDateString = today.toLocaleDateString(); myParts = myDateString.split(" 0"); if (myParts.length != 1) { myDateString = myParts[0] + " " + myParts[1]; } return myDateString.slice(0,-5) + "," + myDateString.slice(-5); } Hier noch ein weiterer Link dazu:
http://jsid.blogspot.com/...ork-interfering.html InDesign Guru Branislav Milic hat im InDesign-Secrets-Blog folgende interessante Idee:
Zitat To insert the date you can also do this: 1. Create a Word file and choose Insert > Date & Time > choose a style and then check the Update automatically box. 2. Save the Word file 3. Import the Word file in InDesign but keep the link with the external Word file alive (in ID’s Preferences) 4. If you want to update the date, just open the Word file and save it, the automatic date is updated. 5. ID will react “Modified Link”. Just update it. 6. The same Word file can be then used in many other ID files as THE external link which provides a date updated (almost) live. Und hier gibt es die Datum-Skripts von Dave Saunders:
http://pdsassoc.com/...oads/DateScripts.zip http://www.pdsassoc.com/...=downloads/index.php Gruß,
Sacha