Re: Driving Word X from Cocoa.
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.