Need to global find and scale and resize frame on a linked graphic


http://forums.adobe.com/message/5167443#5167443

 

someone suggested cross post see if there easy scripting solution dilemma. see post link above.

give try

 

 

#target indesign  var tosearch = 'example.ai' //to edit: name of ai work on  //select folder inddfiles var selfolder = folder.selectdialog(); if(!selfolder) {exit();}; var allinddfiles = selfolder.getfiles('*.indd');  app.scriptpreferences.userinteractionlevel = userinteractionlevels.never_interact; for(var = 0; < allinddfiles.length; i++) {     curritem = allinddfiles[i]; var currdoc = app.open(curritem); changeai(currdoc); } app.scriptpreferences.userinteractionlevel = userinteractionlevels.interact_with_all;  function changeai(docref) { var currgraphics = docref.allgraphics;        l = currgraphics.length;     while(l--){         currgraphic = currgraphics[l]; var currname =   currgraphic.itemlink.name; if(currname == tosearch){ currgraphic.horizontalscale = 30; currgraphic.verticalscale = 30; currgraphic.parent.fit(fitoptions.frame_to_content)     }             }         currdoc.close(saveoptions.yes);         } 


More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support