I’m trying to get a Cocoa application to connect to Microsoft Word, and from my search it seems that the only way, is to use Scripting Bridge and generate a word header file. Ho
So I found out how to "solve" this issue for Microsoft Word 2011 for Mac, I don't really like it, but it seems to work. The "solution" is based on the discussion I linked:
The commands are run in the Build Rules, like described and show in Apples exampled (see my first comment for link).
sdef "$INPUT_FILE_PATH" > word.sdef
(INPUT_FILE_PATH is the path to Microsoft Word, which I've dragged into the XCode)cat word.sdef | sdp -fh -o "$DERIVED_FILES_DIR" --basename "$INPUT_FILE_BASE"
I don't like the the solution, as you have to add strings to the .sdef file manually, however, it seems to work.
I'll mark it as correct answer, as it solves the issue, but if anyone has better solution do tell.