I know this is a very simple question, but I think by understanding the way to turn what I see in the dictionary into a real script, I will be able to create my own scripts a little more easily.
I simply want to create a column break at the current position. From the dictionary I know that insert break is a command and there is a specified place and kind, but I don’t know how to specify my place or the syntax of how to specify kind.
It seems that it would be…
tell application "Microsoft Word"
type text selection text "Text_Export"
insert break:{column break} of active document
type text selection text "Text_Export 2nd column"
end tell
Can someone show me the proper script and any pointers to figuring it out for myself? Thanks!
jon
tell application "Microsoft Word"
insert break at text object of selection break type column break
end tell
Answered my own question. But I still have a problem. When I run this, my cursor is placed before the column break and when I try to script some more text in there, it doesn’t completely work. Is there a way to go to the end of the document?
jon
Anybody have any idea how to get the second text export on the second column?
Next Paragraph? Navigate? Go To? End Key? Can’t seem to get any of these to work.
I’ve tried insert text “end of document” at end of text object of active document, but it doesn’t allow me to easily apply formatting to the text.
TIA.
tell application "Microsoft Word"
type text selection text "Text_Export"
insert break at text object of selection break type column break
type text selection text "Text_Export"
end tell