App sending data into and out of Numbers?

Discussion in 'Mac Programming' started by knightlie, May 31, 2012.

  1. macrumors 6502a

    Joined:
    Feb 18, 2008
    #1
    I'm idly wondering about getting data in and out of Numbers from within another application. Under Windows I'd use COM/ActiveX/Whatever-they-call-it-this-week to open a spreadsheet and get or put the data.

    What method could I use for OSX, assuming there is one? Would AppleScript be able to do it?
     
  2. macrumors 68000

    Sydde

    Joined:
    Aug 17, 2009
    #2
    Do you know how to discover an app's applescript dictionary?
     
  3. thread starter macrumors 6502a

    Joined:
    Feb 18, 2008
    #3
    Yes, and as far as I can tell AppleScript looks to be the only realistic way of doing it. I doubt I'll be working on it yet, but I wanted have a rough idea of what to do so I can plan accordingly.

    I assume there's a way to execute AppleScript from within an application?
     
  4. macrumors 68000

    Sydde

    Joined:
    Aug 17, 2009
    #4
    You could investigate the NSApplescript class.
     

Share This Page