Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. // =======================================================
  2. var idAdobeScriptAutomationScripts = stringIDToTypeID( "AdobeScriptAutomation Scripts" );
  3. var desc14 = new ActionDescriptor();
  4. var idjsNm = charIDToTypeID( "jsNm" );
  5. desc14.putString( idjsNm, """ScriptListenerOn""" );
  6. var idjsMs = charIDToTypeID( "jsMs" );
  7. desc14.putString( idjsMs, """[ActionDescriptor]""" );
  8. executeAction( idAdobeScriptAutomationScripts, desc14, DialogModes.NO );
  9.  
  10. // =======================================================
  11. var idDplc = charIDToTypeID( "Dplc" );
  12. var desc15 = new ActionDescriptor();
  13. var idnull = charIDToTypeID( "null" );
  14. var ref3 = new ActionReference();
  15. var idLyr = charIDToTypeID( "Lyr " );
  16. var idOrdn = charIDToTypeID( "Ordn" );
  17. var idTrgt = charIDToTypeID( "Trgt" );
  18. ref3.putEnumerated( idLyr, idOrdn, idTrgt );
  19. desc15.putReference( idnull, ref3 );
  20. var idVrsn = charIDToTypeID( "Vrsn" );
  21. desc15.putInteger( idVrsn, 5 );
  22. executeAction( idDplc, desc15, DialogModes.NO );
  23.  
  24. // =======================================================
  25. var idinvokeCommand = stringIDToTypeID( "invokeCommand" );
  26. var desc16 = new ActionDescriptor();
  27. var idcommandID = stringIDToTypeID( "commandID" );
  28. desc16.putInteger( idcommandID, -535 );
  29. var idkcanDispatchWhileModal = stringIDToTypeID( "kcanDispatchWhileModal" );
  30. desc16.putBoolean( idkcanDispatchWhileModal, true );
  31. executeAction( idinvokeCommand, desc16, DialogModes.NO );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement