Re: PS CS art layer solid fill
Re: PS CS art layer solid fill
- Subject: Re: PS CS art layer solid fill
- From: Martin Orpen <email@hidden>
- Date: Thu, 18 Jan 2007 23:59:59 +0000
On 18 Jan 2007, at 19:41, Natalie Lambert wrote:
All I'm trying to do is create a new art layer in
Photoshop and make it a solid fill layer (a solid
color). - If I try to just fill the layer with a color
the file is bigger so I'm trying to avoid that.
Use Javascript:
tell application "Adobe Photoshop CS3"
activate
do javascript "var id115 = charIDToTypeID( \"Mk \" );
var desc21 = new ActionDescriptor();
var id116 = charIDToTypeID( \"null\" );
var ref8 = new ActionReference();
var id117 = stringIDToTypeID( \"contentLayer\" );
ref8.putClass( id117 );
desc21.putReference( id116, ref8 );
var id118 = charIDToTypeID( \"Usng\" );
var desc22 = new ActionDescriptor();
var id119 = charIDToTypeID( \"Type\" );
var desc23 = new ActionDescriptor();
var id120 = charIDToTypeID( \"Clr \" );
var desc24 = new ActionDescriptor();
var id121 = charIDToTypeID( \"Rd \" );
desc24.putDouble( id121, 9.999847 );
var id122 = charIDToTypeID( \"Grn \" );
desc24.putDouble( id122, 39.999390 );
var id123 = charIDToTypeID( \"Bl \" );
desc24.putDouble( id123, 49.999237 );
var id124 = charIDToTypeID( \"RGBC\" );
desc23.putObject( id120, id124, desc24 );
var id125 = stringIDToTypeID( \"solidColorLayer\" );
desc22.putObject( id119, id125, desc23 );
var id126 = stringIDToTypeID( \"contentLayer\" );
desc21.putObject( id118, id126, desc22 );
executeAction( id115, desc21, DialogModes.NO );"
end tell
I've got a couple of Photoshop scripts on my blog if you're interested:
<http://www.idea-digital.com/blog/blog.html>
Regards
--
Martin Orpen
<http://www.idea-digital.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden