• 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
Scripting Bridge: the Excel case
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: White block at Core Animation Rendering
  • Next by Date: Drag-and-drop and deferred events
  • Previous by thread: Re: White block at Core Animation Rendering
  • Next by thread: Re: Scripting Bridge: the Excel case
  • Index(es):
    • Date
    • Thread