Scripting Bridge: the Excel case
Scripting Bridge: the Excel case
- Subject: Scripting Bridge: the Excel case
- From: J.P.Pellet <email@hidden>
- Date: Mon, 14 Jan 2008 19:05:07 +0100
I'm trying to send AppleEvent to Excel using Scripting Bridge. I
generated the Excel.h header like this:
sdef /Applications/Microsoft\ Office\ 2004/Microsoft\ Excel | sdp -
fh --basename Excel
... and I imported it in the relevant .m file, where I create the app
stub like this:
NSURL *appURL = [NSURL fileURLWithPath:@"/Applications/Microsoft
Office 2004/Microsoft Excel"];
ExcelApplication *excel = [SBApplication applicationWithURL:appURL];
Unfortunately, I get compile-time warnings and a lot of syntax errors
with the big (unmodified) header file:
warning: multi-character character constant
error: syntax error at 'OTHER' token
--> ExcelE151SheetTypeExcel4IntlMacroSheet = '\0\0\002'',
...
error: 'ExcelE204PasteFormats' undeclared here
--> ExcelE204PasteFormats = '\002[\357\346',
I am surprised to see characters such as ' and [ in the escape
sequences generated by sdp. Am I missing something here? What am I
doing wrong? Is Excel simply not ScriptingBridge-savvy?
TIA,
J.P.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden