Skip to main content
February 7, 2008
Question

Text Variables and Scripts

  • February 7, 2008
  • 21 replies
  • 14324 views
I have a number of standard documents that a setup script uses. In each document there are text variables called Author and Job Number.

I'm working in VB and these commands can display the name and index of the variable but can't seem to find the way to actually change the value of the variable.

Set IDoc = InD.ActiveDocument
MsgBox IDoc.TextVariables("Author").Name
MsgBox IDoc.TextVariables("Author").Index

Any help would be much appreciated.
This topic has been closed for replies.

21 replies

Known Participant
February 7, 2008
TextVariable is "ReadOnly" - or "InsertOnly" ;)

Property ResultText As String
read-only
Member of InDesign.TextVariableInstance
The text that replaces the variable marker. Note: This property cannot be set; it can be used only to update variables. .

robin

--
www.adobescripts.com
Known Participant
February 7, 2008
sorry :(

Peter is right

robin

--
www.adobescripts.com