• 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
writing text to MS Word
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

writing text to MS Word


  • Subject: writing text to MS Word
  • From: Hudson Barton <email@hidden>
  • Date: Wed, 1 Jun 2005 13:04:07 -0400

I have some output from a shell script that is supposed to be regular text and if I move it into most text editors, it looks, feels and acts just like regular text. But apparently it's not. I need to move the text into a window of Microsoft Word (version 10), and it's producing errors like "Can't set every text of window 1 to ..." What's going on here?

If I convert each character first to an ascii number and then back to an ascii character, then it works fine, but that's not practical. Is there an easier way to coerce this string to a regular ascii string?

My script says:

set str to result ---result of shell script
tell application "Microsoft Word" to set text of window 1 to str


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: writing text to MS Word
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: EPS to JPEG
  • Next by Date: Re: Spotlight Workaround
  • Previous by thread: Re: Spotlight Workaround
  • Next by thread: Re: writing text to MS Word
  • Index(es):
    • Date
    • Thread