Article View: adobe.photoshop.scripting
Article #373Re: strip exif
From: Michael_L_Hale
Date: Sun, 01 Mar 2009 01:12
Date: Sun, 01 Mar 2009 01:12
24 lines
1443 bytes
1443 bytes
This should clear the history of selected files in Bridge
#target bridge // let EntendScript know what app the script is for
clearHistory = {};// create an object
clearHistory.execute = function(){// create a method for that object
var sels = app.document.selections;// store the array of selected files
for (var i = 0; i < sels.length; i++){//loop though that array
var md = sels[i].synchronousMetadata;// get the metadata for the file
md.namespace = "http://ns.adobe.com/photoshop/1.0/";// set the namespace
md.History = " ";//set the porperty
}
}
// this script only works in bridge
if (BridgeTalk.appName == "bridge"){
//creage the munuItem
var menu = MenuElement.create( "command", "Clear history in Metadata", "at the end of Tools");
menu.onSelect = clearHistory.execute;
}
Technical Details
Message-ID:
<59b7b6fd.14@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b7b6fd.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,395b07c7068cc51 X-Google-Attributes: gidf5839,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Michael_L_Hale@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.photoshop.scripting Subject: Re: strip exif Message-ID: <59b7b6fd.14@webcrossing.la2eafNXanI> Date: Sat, 28 Feb 2009 17:12:23 -0800 References: <59b7b6fd.-1@webcrossing.la2eafNXanI> Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit