|Photoshop Scripting Learning and sharing for all platforms|
| ||Thread Tools|
Caption to File Name
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.
Check out these scripts from http://share.studio.adobe.com/
* "Add Filename Plus" - the one I would start with FWIW
* "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:
* Adobe.com - Photoshop Scripting forum:
Download the 'Add Filename Plus & Date' script here:
Down towards the bottom of the file is a line:
myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
myTextRef.contents = docRef.info.caption;
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Paint Engine Presets - installing, custom uploads (file)||DannyRaphael||Photo-Based Art||32||08-06-2014 07:06 PM|
|Impressionist plugin: Troubleshooting||Cheryl H||Photo-Art Resources||34||06-15-2009 10:13 PM|
|Driving me crazy! (about file extensions)||dungbeetle||Photoshop Help||8||07-26-2006 04:32 PM|
|Resizing images for RetouchPRO||jeaniesa||Photo Retouching||18||09-26-2005 12:20 AM|
|Small vs. Large File Size For Restorations||Doug Nelson||Photo Restoration||8||04-29-2002 09:02 AM|