Originally posted by zurek106:
<STRONG>I am just trying to do a simple Applescript but it wont work! I am trying to have the font format set to the right side. Here is what I have, but it doesnt work:
tell application "Microsoft Word"
set justification to right
end tell
Does anyone know how to do it?
Also I am interested in using AppleScript, but I cant figure out how to use the Script Dictionaries. How do you use them?
Thanks,
Dan</STRONG>
The "Justification" is applied to a character or paragraph, not an entire document. So you need to have a reference for it, like this:
tell application "Microsoft Word"
set justification
of every character
to right
end tell
It will change the justification of every character to right, and thus everything will go to the right.
As for reading dictionaries, it is rather simple once you figure it out. I actually started a tutorial for it a couple months ago but never finished it, I'll try to finish it in a couple days though. If I catch you on AIM then I can help you out directly.
Hope this helps
