• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to paste styled text into a footnote in "Microsoft Word"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

--
mkr

Dr. Markus Krajewski
Bauhaus-Universität Weimar
Bauhausstraße 11
99421 Weimar
Fon: 03643.58-3840
Fax: 03643.58-3791
Mobil: 0179.7964814
www.uni-weimar.de/medien/kulturtechniken/

www.verzetteln.de

 _______________________________________________
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

References: 
 >Re: How to paste styled text into a footnote in "Microsoft Word" (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: including osaxen in script vs application bundles
  • Next by Date: Re: including osaxen in script vs application bundles
  • Previous by thread: Re: How to paste styled text into a footnote in "Microsoft Word"
  • Next by thread: make new folder
  • Index(es):
    • Date
    • Thread