Re: How to paste styled text into a footnote in "Microsoft Word"
Re: How to paste styled text into a footnote in "Microsoft Word"
- Subject: Re: How to paste styled text into a footnote in "Microsoft Word"
- From: Markus Krajewski <email@hidden>
- Date: Sun, 01 Jun 2008 23:55:10 +0200
Title: Re: How to paste styled text into a footnote in "Microsoft
Word"
Paul Berkowitz schrieb:
Actually, even the two-part method you
outline below only works if you first select the footnote itself
between them (after creating the footnote). Otherwise it pastes the
clipboard content not only into the footnote but also into the main
text after the original selection (after the footnote symbol). The main
point is that you don't want to paste into the selection but
rather into (text object of myFootnote). For pasting styled text,
there's no real need for 'paste special' although it works fine with
the right data type, as you did. Simpler is just to use 'paste object'
which pastes styled text by default.
So just do 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}
paste object (text object of myFootnote)
end tell
Thank you, Paul. Now it's working.
Best,
Markus
|
_______________________________________________
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