• 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: Driving Word X from Cocoa.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Driving Word X from Cocoa.


  • Subject: Re: Driving Word X from Cocoa.
  • From: Shawn Erickson <email@hidden>
  • Date: Mon, 23 Sep 2002 16:50:04 -0700

On Monday, September 23, 2002, at 04:32 PM, Robert Tillyard wrote:

Under Windows an application can fire-up Word, load a document, do a search for strings in the format $(fieldname), replace depending on 'fieldname' from a remote database (I have that bit) and print the document.

I would like to do this from Cocoa, does anyone know if this is possible? I have no idea where to begin with this and so far my searches of the MSDN site haven't come up with anything.

AppleScript...

Open the AppleScript editor (/Applications/AppleScript/Script Editor) and use the open dictionary command from the file menu and select Microsoft Word from the list (it may take few seconds to show while it scan applications).

...it looks like Word's AppleScript command suite is a little weak but it does support the ability to request the app to run an VB script (you provide it the script).

-Shawn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Driving Word X from Cocoa.
      • From: Scott Anguish <email@hidden>
References: 
 >Driving Word X from Cocoa. (From: Robert Tillyard <email@hidden>)

  • Prev by Date: Re: Driving Word X from Cocoa.
  • Next by Date: [Q] Calling isEmpty on an NSRange?
  • Previous by thread: Re: Driving Word X from Cocoa.
  • Next by thread: Re: Driving Word X from Cocoa.
  • Index(es):
    • Date
    • Thread