Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // =======================================================
- var idAdobeScriptAutomationScripts = stringIDToTypeID( "AdobeScriptAutomation Scripts" );
- var desc14 = new ActionDescriptor();
- var idjsNm = charIDToTypeID( "jsNm" );
- desc14.putString( idjsNm, """ScriptListenerOn""" );
- var idjsMs = charIDToTypeID( "jsMs" );
- desc14.putString( idjsMs, """[ActionDescriptor]""" );
- executeAction( idAdobeScriptAutomationScripts, desc14, DialogModes.NO );
- // =======================================================
- var idDplc = charIDToTypeID( "Dplc" );
- var desc15 = new ActionDescriptor();
- var idnull = charIDToTypeID( "null" );
- var ref3 = new ActionReference();
- var idLyr = charIDToTypeID( "Lyr " );
- var idOrdn = charIDToTypeID( "Ordn" );
- var idTrgt = charIDToTypeID( "Trgt" );
- ref3.putEnumerated( idLyr, idOrdn, idTrgt );
- desc15.putReference( idnull, ref3 );
- var idVrsn = charIDToTypeID( "Vrsn" );
- desc15.putInteger( idVrsn, 5 );
- executeAction( idDplc, desc15, DialogModes.NO );
- // =======================================================
- var idinvokeCommand = stringIDToTypeID( "invokeCommand" );
- var desc16 = new ActionDescriptor();
- var idcommandID = stringIDToTypeID( "commandID" );
- desc16.putInteger( idcommandID, -535 );
- var idkcanDispatchWhileModal = stringIDToTypeID( "kcanDispatchWhileModal" );
- desc16.putBoolean( idkcanDispatchWhileModal, true );
- executeAction( idinvokeCommand, desc16, DialogModes.NO );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement