This content has been marked as final.
Show 2 replies
-
1. Re: Release Anchored Objects
csm_phil Apr 26, 2012 10:58 AM (in response to Maria964)Hi Maria,
Please use the below JS code, But the code is your requirement has been solved, i feel this way is big round circle. So any one make short your requirement after my script to edit or modify.
var myDoc = app.activeDocument; var myPGItem = myDoc.allPageItems; for(j=0; j<myPGItem.length; j++){ var myAncObj = myPGItem[j]; if(myAncObj.parent.constructor.name=="Character"){ if(myAncObj.constructor.name =="TextFrame" || myAncObj.constructor.name =="Rectangle" || myAncObj.constructor.name =="Group"){ myAncObj.anchoredObjectSettings.releaseAnchoredObject(); } } }thx
csm_phil
-
2. Re: Release Anchored Objects
Maria964 Apr 26, 2012 4:11 PM (in response to Maria964)Thank you csm_phil. Tomorrow I will try your code.
Maria


