Re: Word scripting?
Re: Word scripting?
- Subject: Re: Word scripting?
- From: John Delacour <email@hidden>
- Date: Mon, 24 Mar 2003 20:44:33 +0000
- Mac-eudora-version: 6.0a13
At 10:54 am -0800 24/3/03, Paul Berkowitz wrote:
> What was wrong with my solution, which uses the standard syntax for
the text suite and requires no VB ?
Nothing. It should work every time with a new line, yes. But if you want to
move the insertion point from wherever it is to, say, somewhere in the 4th
paragraph, even the beginning of the 4th paragraph, it usually goes wrong,
sooner or later.
I have no doubt that Word's behaviour may be bad in some respects --
I never use it -- but in this respect it seems not do misbehave as
you say. Can you give an example of what you mean?
tell application "Microsoft Word"
set bullet to ASCII character 165
activate
make document
tell the front document
repeat 8 times
set the selection to "________" & return
end repeat
repeat 20 times
set {x, y} to {random number from 1 to 8, random number from 1 to 8}
select insertion point after character x of paragraph y
set selection to bullet
end repeat
end tell
end tell
--JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.