hi, i have a script that i wrote a few years ago that takes
information from a filemaker database and inserts it into a word
do***ent. this script was written before Word had any kind of
redeeming applescipt dictionary and included VBA.
bascially, the ****tions of the script that take the info out of
filemaker are still in tact. what im having trouble with is replacing
the 'do visual basic' commands with applescript.
i was skimming the new Word library but cant make sense of it.
any help is appreciated.
thanks,
G.Miller
do Visual Basic "Selection.MoveDown Unit:=wdLine, Count:=2"
do Visual Basic "Selection.TypeParagraph"
do Visual Basic "Selection.InsertDateTime DateTimeFormat:=\"MMMM d,
yyyy\", InsertAsField:= False"
do Visual Basic "Selection.TypeParagraph"
do Visual Basic "Selection.TypeParagraph"
do Visual Basic "ActiveDo***ent.Tables.Add Range:=Selection.Range,
NumRows:=1, NumColumns:=2, DefaultTableBehavior:=wdWord9TableBehavior,
AutoFitBehavior:=wdAutoFitFixed"
do Visual Basic "Selection.Tables(1).AutoFormat
Format:=wdTableFormatSimple1, ApplyBorders:=False,
ApplyShading:=False, ApplyFont:=False,
ApplyColor:=False,ApplyHeadingRows:=False, ApplyLastRow:=False,
ApplyFirstColumn:=False,ApplyLastColumn:=False, AutoFit:=False"
set contents of selection to mycontactaddress
do Visual Basic "Selection.MoveRight Unit:=wdCell"
do Visual Basic "Selection.ParagraphFormat.Alignment =
wdAlignParagraphRight"
set contents of selection to mycontactnumbers
do Visual Basic "Selection.MoveDown Unit:=wdLine, Count:=1"
do Visual Basic "Selection.TypeParagraph"
do Visual Basic "Selection.ParagraphFormat.Alignment =
wdAlignParagraphJustify"
set contents of selection to myestimatebody


|