Carbra
11-05-2005, 03:32 PM
Hi,
I've been working on a project for work for some weeks now and I've hit a brick wall. I was hoping that someone may be able to help?
I'm writing a script to take the caption in the File Info, puts it on the front of an image and then save it using the caption as the file name too. It's been relatively easy to do the first part, but when it comes to resaving the image using the caption as the file name, I'm hitting a brick wall.
Please, can anyone give me a clue or point me towards a site that may help.
I've never tried it but I think that Russel Brown's service 1.3 found HERE (http://www.russellbrown.com/index.html) might very well do what you are after.
Good luck
DannyRaphael
11-05-2005, 08:59 PM
Hi,
I've been working on a project for work for some weeks now and I've hit a brick wall. I was hoping that someone may be able to help?
I'm writing a script to take the caption in the File Info, puts it on the front of an image and then save it using the caption as the file name too. It's been relatively easy to do the first part, but when it comes to resaving the image using the caption as the file name, I'm hitting a brick wall.
Please, can anyone give me a clue or point me towards a site that may help.Welcome to RetouchPRO, Carbra:
Check out these scripts from http://share.studio.adobe.com/
* "Add Filename Plus" - the one I would start with FWIW
* "FilenameAsTextlayer"
* "Add Filename Plus & Date"
Each extracts an image's file name in order to populate a Text layer.
Perhaps you can reverse engineer them to figure out how to populate the file name variable?
These are two excellent PS scripting forums:
* A great scripting website started by Andrew Hall:
http://www.ps-scripts.com
* Adobe.com - Photoshop Scripting forum:
http://www.adobeforums.com/cgi-bin/webx?14@@.ef7ec95
xbytor
11-23-2005, 10:47 AM
Download the 'Add Filename Plus & Date' script here:
http://share.studio.adobe.com/axAssetDetailSubmit.asp?aID=11493
Down towards the bottom of the file is a line:
myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
Change it to:
myTextRef.contents = docRef.info.caption;
There are a lot of options for font, color, and placement.