Scripting Bridge and Cocoa

S

s.arnason

Version: 2008 Operating System: Mac OS X 10.6 (Snow Leopard) Processor: Intel I am currently using Scripting Bridge to communicate with Word 2008. It works fine in Leopard but in Snow Leopard Scripting Bridge crashes due to some formatting of the Apple Event dictionary in Word. I understand that SB in Leopard was more tolerant towards errors but the new version is not.

Word seems to be the only application that triggers a crash.

Has anyone got the solution to this?

If you feel like trying it out:

In 10.6: open Xcode, link to Scripting Bridge, include the header and place this in the awakeFromNib() or init():

Crasher:
SBApplication *theTargetApp = [SBApplication applicationWithBundleIdentifier:mad:"com.microsoft.Word"];

Non-Crasher:
SBApplication *theTargetApp = [SBApplication applicationWithBundleIdentifier:mad:"com.apple.iTunes"];
 
J

John McGhie

I doubt if anyone has a solution to this.

Word does not support "events" other than the ones coded as methods in the
AppleScript dictionary in Word.

So attempting to call/register events Microsoft has not specifically
provided APIs for is likely to be exciting.

Sorry


Version: 2008 Operating System: Mac OS X 10.6 (Snow Leopard) Processor: Intel
I am currently using Scripting Bridge to communicate with Word 2008. It works
fine in Leopard but in Snow Leopard Scripting Bridge crashes due to some
formatting of the Apple Event dictionary in Word. I understand that SB in
Leopard was more tolerant towards errors but the new version is not.

Word seems to be the only application that triggers a crash.

Has anyone got the solution to this?

If you feel like trying it out:

In 10.6: open Xcode, link to Scripting Bridge, include the header and place
this in the awakeFromNib() or init():

Crasher:
SBApplication *theTargetApp = [SBApplication
applicationWithBundleIdentifier:mad:"com.microsoft.Word"];

Non-Crasher:
SBApplication *theTargetApp = [SBApplication
applicationWithBundleIdentifier:mad:"com.apple.iTunes"];

--

The email below is my business email -- Please do not email me about forum
matters unless I ask you to; or unless you intend to pay!

John McGhie, Microsoft MVP (Word, Mac Word), Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. | Ph: +61 (0)4 1209 1410
+61 4 1209 1410, mailto:[email protected]
 
H

has

Version: 2008 Operating System: Mac OS X 10.6 (Snow Leopard) Processor: Intel I am currently using Scripting Bridge to communicate with Word 2008. It works fine in Leopard but in Snow Leopard Scripting Bridge crashes due tosome formatting of the Apple Event dictionary in Word. I understand that SB in Leopard was more tolerant towards errors but the new version is not.
Word seems to be the only application that triggers a crash.
Has anyone got the solution to this?

http://appscript.sourceforge.net/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top