This content has been marked as final.
Show 4 replies
-
1. Re: convert live captions to static on all pages?
Jump_Over Jun 3, 2013 2:04 PM (in response to steffenunger)Hi,
before run input your variable name (displayed in Text:Text Variables menu)
var myDoc = app.activeDocument; var myCap = myDoc.textVariables.item("yourVarName"); // <== edit here var l = myCap.associatedInstances.length; while (l--) myCap.associatedInstances[0].convertToText();However much easier is to mouse-klick in UI:
select anyone of your caption instances ==>
go to Text:Text Variables:Define window ==>
choose your variable ==>
klick "convert to text" button.
Jarek
-
2. Re: convert live captions to static on all pages?
dln385 Jun 3, 2013 3:36 PM (in response to Jump_Over)Did you mean the 0 in the last line to actually be an l? As in, it should be:
myCap.associatedInstances[l].convertToText();
-
3. Re: convert live captions to static on all pages?
Jump_Over Jun 4, 2013 1:40 AM (in response to dln385)Hi @ dln385
What is wrong with converting item [0] - always first - in while loop?
Changing this to [1] leads to an error at the end ("object undefined")...
and the last one stay unconverted.
Jarek
-
4. Re: convert live captions to static on all pages?
dln385 Jun 4, 2013 7:26 AM (in response to Jump_Over)Sorry, I misunderstood what the code was doing and thought that was a typo.


