Fwd: Re: Applescript Interactions with Footnotes in Word
Fwd: Re: Applescript Interactions with Footnotes in Word
- Subject: Fwd: Re: Applescript Interactions with Footnotes in Word
- From: <email@hidden>
- Date: Tue, 20 Nov 2007 07:21:26 -0800 (PST)
email@hidden wrote:
hi,
I have run across a basic issue that has really frustrated me. From my testing it seems that both the "Move Start of Range" and "Collapse Range" commands of applescript do not work if your text range is in a footnote. Has anybody run across an issue such as this before? If so did you find a solution?
I would appreciate any help in this matter you may have.
I have added a small snippet of code that will illustrate this.
tell application "Microsoft Word"
collapse range text object of selection direction collapse
end
set myFootnote to make new footnote at active document with properties {text range:text object of selection}
set content of text object of myFootnote to "This is some test filler for the footnote"
set myRange to text object of myFootnote
select myRange
--by commenting out the line below, you will see that everything up until this point works correctly
move start of range myRange by a word item count 1
--I might be looking at it wrong, but this gives the wrong results (you will see many more issues with "move start of range" and "collapse range" as well
end tell
If I am looking at this right, is this a bug in the
applescript?
Regards.
Brian
I have also been able to reproduce this with "collapse range" and "move end of range". It does not throw an error, but it does seem to function incorrectly.
Anybody have any thoughts?
Thanks!
Brian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden