Monday, June 18, 2018

#1 2017-12-20 08:12:37 am

barbarapress
Member
Registered: 2005-05-04
Posts: 267

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.

Applescript:



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)


Filed under: text, Indesign

Offline

 

#2 2017-12-20 06:32:47 pm

Marc Anthony
Member
From:: Dallas, TX
Registered: 2006-04-27
Posts: 803

Re: converting text variables in InDesign to be static text

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.

Applescript:

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

Applescript:

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

Offline

 

#3 2017-12-24 11:39:03 am

barbarapress
Member
Registered: 2005-05-04
Posts: 267

Re: converting text variables in InDesign to be static text

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)

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)