deselecting text in Word
How can I deselect text in a document once it has been selected and edited?
I can't find this in the documentation and none of the obvious commands seem to work: deselect, select none, etc.
The below script works fine but I want to deselect myRange.
tell application "Microsoft Word"
activate
open "Photo [OSX]:Users:home:Desktop:Calendar.doc"
insert text textCalData at end of text object of front document
set theCount to count of paragraphs of active document
set myRange to create range active document start (start of content of text object of paragraph 3 of active document) end (end of content of text object of paragraph theCount of active document)
select myRange
set all caps of font object of selection to true
end tell
Pedro
G5 Mac OS X (10.3.9)
I can't find this in the documentation and none of the obvious commands seem to work: deselect, select none, etc.
The below script works fine but I want to deselect myRange.
tell application "Microsoft Word"
activate
open "Photo [OSX]:Users:home:Desktop:Calendar.doc"
insert text textCalData at end of text object of front document
set theCount to count of paragraphs of active document
set myRange to create range active document start (start of content of text object of paragraph 3 of active document) end (end of content of text object of paragraph theCount of active document)
select myRange
set all caps of font object of selection to true
end tell
Pedro
G5 Mac OS X (10.3.9)