Hello,
I'll tried to replace a selected text in FrameMaker by a FrameMaker
variable.
Par example:
String "Purchase Price List in EUR"
The "EUR" should be substituted to the FrameMaker variable "currency"
Code fragment:
tell application "FrameMaker 7.0"
...
set myText to (get text of selection)
set allVar to get properties of every variable format of document 1
...
set myFlag to false
repeat with j from 1 to (count items in allVar)
if myText is equal to (get format definition of (item j of allVar))
then
set myFlag to true
set myVarName to get (name of (item j of allVar))
exit repeat
end if
end repeat
...
if myFlag is true then
--> set .... ((intention: replace selected text with the variable
itself not the contents of the variable))
Any idea, how the "set" command looks like?
All ideas are welcome; thanks in advance!
Ludwig