This is a useful script that some one made for me here in this website.
The idea is you disable the shortcut to the save as to the "save as script"
Then on save it adds the editor of the image.
Code: Select allfunction saveAS() {
if(!documents.length) return;
activeDocument.info.captionWriter = "Editted_by_You";
if(activeDocument.layers.length > 1){
var desc2 = new ActionDescriptor();
var desc3 = new ActionDescriptor();
desc3.putBoolean( stringIDToTypeID('maximizeCompatibility'), true );
desc2.putObject( charIDToTypeID('As '), charIDToTypeID('Pht3'), desc3 );
try{executeAction( charIDToTypeID('save'), desc2, DialogModes.ALL );}catch(e){}
}else{
try{executeAction( charIDToTypeID('save'), undefined, DialogModes.ALL );}catch(e){}
}
};
saveAS();
Now I was wondering if anyone knows how to access the other meta IPTC data so other fields can be completed?
activeDocument.info.captionWriter ? Maybe title etc.
Saving metadata other Varibles
Saving metadata other Varibles
Here are the references:
activeDocument.info.title
activeDocument.info.author
activeDocument.info.authorPosition
activeDocument.info.caption
activeDocument.info.captionWriter
activeDocument.info.jobName
activeDocument.info.copyrighted
activeDocument.info.copyrightNotice
activeDocument.info.ownerUrl
activeDocument.info.keywords
activeDocument.info.category
activeDocument.info.supplementalCategories
activeDocument.info.creationDate
activeDocument.info.city
activeDocument.info.provinceState
activeDocument.info.country
activeDocument.info.credit
activeDocument.info.source
activeDocument.info.headline
activeDocument.info.instructions
activeDocument.info.transmissionReference
activeDocument.info.urgency
activeDocument.info.exif
activeDocument.info.typename
activeDocument.info.parent
activeDocument.info.__proto__
Inside "activeDocument.info.exif" we have also many other properties and they come in an array of 3 values:
I've collected this on a JPEG image in the example below, but the file exif info differs from file to file.
For example, activeDocument.info.exif[1] in a jpeg give me Image Width but it give a different property in a DNG.
So, If I need some specific property in the array activeDocument.info.exif[?] of a file, I should run a search on that array first.
This was the exif of a JPEG image tested:
activeDocument.info.exif[0] gives an array[a,b,c]:
GPS Version,2.2.0.0,0
activeDocument.info.exif[1] gives an array[a,b,c]:
Image Width,2574,256
activeDocument.info.exif[2] gives an array[a,b,c]:
Image Height,3861,257
activeDocument.info.exif[3] gives an array[a,b,c]:
EXIF tag 258,8 8 8,258
activeDocument.info.exif[4] gives an array[a,b,c]:
EXIF tag 262,RGB,262
activeDocument.info.exif[5] gives an array[a,b,c]:
Make,Canon,271
activeDocument.info.exif[6] gives an array[a,b,c]:
Model,Canon EOS 5D Mark II,272
activeDocument.info.exif[7] gives an array[a,b,c]:
Orientation,Normal,274
activeDocument.info.exif[8] gives an array[a,b,c]:
EXIF tag 277,3,277
activeDocument.info.exif[9] gives an array[a,b,c]:
X Resolution,300.0,282
activeDocument.info.exif[10] gives an array[a,b,c]:
Y Resolution,300.0,283
activeDocument.info.exif[11] gives an array[a,b,c]:
Resolution Unit,Inches,296
activeDocument.info.exif[12] gives an array[a,b,c]:
Software,Adobe Photoshop CS6 (Macintosh),305
activeDocument.info.exif[13] gives an array[a,b,c]:
Date Time,2014:02:11 16:35:51,306
activeDocument.info.exif[14] gives an array[a,b,c]:
Artist,Photographer: ,315
activeDocument.info.exif[15] gives an array[a,b,c]:
Exposure Time,1/125 sec,33434
activeDocument.info.exif[16] gives an array[a,b,c]:
F-Stop,f/14,33437
activeDocument.info.exif[17] gives an array[a,b,c]:
Exposure Program,Manual,34850
activeDocument.info.exif[18] gives an array[a,b,c]:
ISO Speed Ratings,160,34855
activeDocument.info.exif[19] gives an array[a,b,c]:
ExifVersion,0220,36864
activeDocument.info.exif[20] gives an array[a,b,c]:
Date Time Original,2014:02:11 16:35:51,36867
activeDocument.info.exif[21] gives an array[a,b,c]:
Date Time Digitized,2014:02:11 16:35:51,36868
activeDocument.info.exif[22] gives an array[a,b,c]:
Shutter Speed,1/125 sec,37377
activeDocument.info.exif[23] gives an array[a,b,c]:
Aperture Value,f/14,37378
activeDocument.info.exif[24] gives an array[a,b,c]:
Exposure Bias Value,0.00,37380
activeDocument.info.exif[25] gives an array[a,b,c]:
Subject Distance,0.0 m,37382
activeDocument.info.exif[26] gives an array[a,b,c]:
Metering Mode,Pattern,37383
activeDocument.info.exif[27] gives an array[a,b,c]:
Flash,16,37385
activeDocument.info.exif[28] gives an array[a,b,c]:
Focal Length,70.0 mm,37386
activeDocument.info.exif[29] gives an array[a,b,c]:
Color Space,sRGB,40961
activeDocument.info.exif[30] gives an array[a,b,c]:
Pixel X Dimension,1615,40962
activeDocument.info.exif[31] gives an array[a,b,c]:
Pixel Y Dimension,2000,40963
activeDocument.info.exif[32] gives an array[a,b,c]:
Focal Plane Resolution Unit,Inches,41488
activeDocument.info.exif[33] gives an array[a,b,c]:
File Source,DSC,41728
activeDocument.info.exif[34] gives an array[a,b,c]:
Scene Type,Direct Photographed Image,41729
activeDocument.info.exif[35] gives an array[a,b,c]:
Exposure Mode,Manual,41986
activeDocument.info.exif[36] gives an array[a,b,c]:
White Balance,Manual,41987
Hope it helps
activeDocument.info.title
activeDocument.info.author
activeDocument.info.authorPosition
activeDocument.info.caption
activeDocument.info.captionWriter
activeDocument.info.jobName
activeDocument.info.copyrighted
activeDocument.info.copyrightNotice
activeDocument.info.ownerUrl
activeDocument.info.keywords
activeDocument.info.category
activeDocument.info.supplementalCategories
activeDocument.info.creationDate
activeDocument.info.city
activeDocument.info.provinceState
activeDocument.info.country
activeDocument.info.credit
activeDocument.info.source
activeDocument.info.headline
activeDocument.info.instructions
activeDocument.info.transmissionReference
activeDocument.info.urgency
activeDocument.info.exif
activeDocument.info.typename
activeDocument.info.parent
activeDocument.info.__proto__
Inside "activeDocument.info.exif" we have also many other properties and they come in an array of 3 values:
I've collected this on a JPEG image in the example below, but the file exif info differs from file to file.
For example, activeDocument.info.exif[1] in a jpeg give me Image Width but it give a different property in a DNG.
So, If I need some specific property in the array activeDocument.info.exif[?] of a file, I should run a search on that array first.
This was the exif of a JPEG image tested:
activeDocument.info.exif[0] gives an array[a,b,c]:
GPS Version,2.2.0.0,0
activeDocument.info.exif[1] gives an array[a,b,c]:
Image Width,2574,256
activeDocument.info.exif[2] gives an array[a,b,c]:
Image Height,3861,257
activeDocument.info.exif[3] gives an array[a,b,c]:
EXIF tag 258,8 8 8,258
activeDocument.info.exif[4] gives an array[a,b,c]:
EXIF tag 262,RGB,262
activeDocument.info.exif[5] gives an array[a,b,c]:
Make,Canon,271
activeDocument.info.exif[6] gives an array[a,b,c]:
Model,Canon EOS 5D Mark II,272
activeDocument.info.exif[7] gives an array[a,b,c]:
Orientation,Normal,274
activeDocument.info.exif[8] gives an array[a,b,c]:
EXIF tag 277,3,277
activeDocument.info.exif[9] gives an array[a,b,c]:
X Resolution,300.0,282
activeDocument.info.exif[10] gives an array[a,b,c]:
Y Resolution,300.0,283
activeDocument.info.exif[11] gives an array[a,b,c]:
Resolution Unit,Inches,296
activeDocument.info.exif[12] gives an array[a,b,c]:
Software,Adobe Photoshop CS6 (Macintosh),305
activeDocument.info.exif[13] gives an array[a,b,c]:
Date Time,2014:02:11 16:35:51,306
activeDocument.info.exif[14] gives an array[a,b,c]:
Artist,Photographer: ,315
activeDocument.info.exif[15] gives an array[a,b,c]:
Exposure Time,1/125 sec,33434
activeDocument.info.exif[16] gives an array[a,b,c]:
F-Stop,f/14,33437
activeDocument.info.exif[17] gives an array[a,b,c]:
Exposure Program,Manual,34850
activeDocument.info.exif[18] gives an array[a,b,c]:
ISO Speed Ratings,160,34855
activeDocument.info.exif[19] gives an array[a,b,c]:
ExifVersion,0220,36864
activeDocument.info.exif[20] gives an array[a,b,c]:
Date Time Original,2014:02:11 16:35:51,36867
activeDocument.info.exif[21] gives an array[a,b,c]:
Date Time Digitized,2014:02:11 16:35:51,36868
activeDocument.info.exif[22] gives an array[a,b,c]:
Shutter Speed,1/125 sec,37377
activeDocument.info.exif[23] gives an array[a,b,c]:
Aperture Value,f/14,37378
activeDocument.info.exif[24] gives an array[a,b,c]:
Exposure Bias Value,0.00,37380
activeDocument.info.exif[25] gives an array[a,b,c]:
Subject Distance,0.0 m,37382
activeDocument.info.exif[26] gives an array[a,b,c]:
Metering Mode,Pattern,37383
activeDocument.info.exif[27] gives an array[a,b,c]:
Flash,16,37385
activeDocument.info.exif[28] gives an array[a,b,c]:
Focal Length,70.0 mm,37386
activeDocument.info.exif[29] gives an array[a,b,c]:
Color Space,sRGB,40961
activeDocument.info.exif[30] gives an array[a,b,c]:
Pixel X Dimension,1615,40962
activeDocument.info.exif[31] gives an array[a,b,c]:
Pixel Y Dimension,2000,40963
activeDocument.info.exif[32] gives an array[a,b,c]:
Focal Plane Resolution Unit,Inches,41488
activeDocument.info.exif[33] gives an array[a,b,c]:
File Source,DSC,41728
activeDocument.info.exif[34] gives an array[a,b,c]:
Scene Type,Direct Photographed Image,41729
activeDocument.info.exif[35] gives an array[a,b,c]:
Exposure Mode,Manual,41986
activeDocument.info.exif[36] gives an array[a,b,c]:
White Balance,Manual,41987
Hope it helps