Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

Re: Snap with scripting

$
0
0

Unfortunately in CS2, the following gives us the 8800 error "The <object unknown> is not currently available"

 

function runMenuItem(item){   cTID = function(s)   {      return app.charIDToTypeID(s);   }   var desc = new ActionDescriptor();    var ref = new ActionReference();    ref.putEnumerated( cTID( "Mn  " ), cTID( "MnIt" ), cTID( item ) );    desc.putReference( cTID( "null" ), ref );    executeAction( cTID( "slct" ), desc, DialogModes.NO ); } 
runMenuItem("snap")

 

even though

runMenuItem("ActP"); //actual size 100%

works fine.


Viewing all articles
Browse latest Browse all 27456

Trending Articles