S
Steve Cronin
Folks;
I've poked around a bit and it seems there are some very helpful and
knowledgeable folks here!
Thanks to all of you who are of service!
OK so I'm trying to print using Word from AScript. I have 3 questions.
1) If I use the 'do Visual Basic' construct will that AppleScipt work
with Word v.X AND Word 2004?
2) What I want to do is essentially 'mail-merge' but the user is not
going to be placing merge tags.
They will simply put placeholders that I will substitute with data in
my script. They will be placing the text in normal layout, inside of
textboxes, and inside of tables. Could be some or all of the above.
How do I determine if there are any text boxes and then iterate over
them changing .Text 'abc' to 'xyz'?
3) I've scouted the past postings and I find some code snippets with
both straight AS and then a do VB with an open quote followed by long
paragraphs of VB code and a closing quote.
When I use this construct I always get a compiler error with the text
looking like ""& vbLf &" Dim cellText As String"& vbLf &" Dim i, j
As Integer"& vbLf &" With ActiveDocument.Tables( _
1)"& vbLf &" ...."
It looks like VB takes on a stray 'vbLf' from my ScriptEditor. What am
I doing wrong here?
Thanks for any help!
Steve
I've poked around a bit and it seems there are some very helpful and
knowledgeable folks here!
Thanks to all of you who are of service!
OK so I'm trying to print using Word from AScript. I have 3 questions.
1) If I use the 'do Visual Basic' construct will that AppleScipt work
with Word v.X AND Word 2004?
2) What I want to do is essentially 'mail-merge' but the user is not
going to be placing merge tags.
They will simply put placeholders that I will substitute with data in
my script. They will be placing the text in normal layout, inside of
textboxes, and inside of tables. Could be some or all of the above.
How do I determine if there are any text boxes and then iterate over
them changing .Text 'abc' to 'xyz'?
3) I've scouted the past postings and I find some code snippets with
both straight AS and then a do VB with an open quote followed by long
paragraphs of VB code and a closing quote.
When I use this construct I always get a compiler error with the text
looking like ""& vbLf &" Dim cellText As String"& vbLf &" Dim i, j
As Integer"& vbLf &" With ActiveDocument.Tables( _
1)"& vbLf &" ...."
It looks like VB takes on a stray 'vbLf' from my ScriptEditor. What am
I doing wrong here?
Thanks for any help!
Steve