3131 is the command id, so:
Code: Select all
if (parseFloat(app.version) < 16.1) app.executeCommand(2359);
else app.executeCommand(3131);
3131 is the command id, so:
Code: Select all
if (parseFloat(app.version) < 16.1) app.executeCommand(2359);
else app.executeCommand(3131);
Glad I could help!
Yes... the previously replaced items will remain as a placeholder somehow, after an Undo.
Will check into that a bit later and send you an updated script.
Cheers! Take care!
P.S.: You don't have to check all the project items. app.project.selection gives you an array of all the selected items. In bigger projects your script will be slower.