Illustrator X dating script?

Hello, is there a way to script the date automatically everytime you open an illustrator file?

Thanks for the help

klang

Model: G5
Browser: Firefox 1.5.0.4
Operating System: Mac OS X (10.4)

klang,

I have part of a script that might get you started. However, the part about whenever you make a new document it inserts a date is probably a bit beyond me. You could possibly use “System Events” and a stay open script, but I’m not quite sure how to go about it and unfortunately do not have time now to play. This is for Illustrator 10.

set theDate to ((((month of (current date)) as number) & "/" & ((day of (current date)) as number)) & "/" & (characters 3 thru 4) of ((year of (current date) as text))) as text

tell application "Adobe Illustrator 10"
	
	set thisName to name of current document
	set chaCheck to (characters 1 thru 8 of thisName) as text
	if chaCheck is "Untitled" then
		make new text art item in current document with properties {position:{100, 740}, contents:theDate}
	end if
end tell

PreTech

Thanks Ian, I’ll try it, the designers here alway ferget to date their documents, that causes a lot of problems, and I’m new on scripting, this is a great help!

Klang

You might want to think about creating a droplet that opens the file and changes/creates the date stamp. Then all you have to do is get them to open files using the droplet rather than double clicking on it, either way the designer will have to change the way they are working slightly by either drag and drop or open and execute a script.