converting text variables in InDesign to be static text

Hello,

I am trying to add an Applescript into my Scrips area of InDesign that would find every story (text variable boxes) and convert them to static text. Here is what I have put together, but see error.



tell application "Adobe InDesign CC 2018"
	tell (every text variable instance of every story) to convert to text
end tell


Error Number: -1708
Error String: Adobe InDesign CC 2018 got an error: every text variable instance of every story doesn’t understand the “convert to text” message.
Engine: Default
File:/Applications/ Adobe InDesign CC 2018/Scripts/Scrips Panel/Samples/AppleScript.s/convertvartotext.scpt

Any help would be greatly appreciated.
Best,
Babs

Browser: Safari 604.4.7
Operating System: Mac OS X (10.13 Developer Beta 3)

Hi. A text variable is the general definition for a symbol class; this can be changed at its container object when one instance per class is in effect. It can be scoped to multiples with the instance specifier.

tell application "Adobe InDesign CS3"'s document 1 to convert to text text variables

tell application "Adobe InDesign CS3"'s document 1 to convert to text story 1's text variable instances

Hi Mark,

Thank you!

This worked … The only thing is I have to click it to effect each page… Is there a way too get it to run-through the entire document at one time?

Thank you!!! happy Holidays!
Cheers!
Babs

Browser: Safari 604.4.7
Operating System: Mac OS X (10.13 Developer Beta 3)