PDA

View Full Version : App sending data into and out of Numbers?




knightlie
May 31, 2012, 04:13 AM
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?



Sydde
May 31, 2012, 03:26 PM
Do you know how to discover an app's applescript dictionary?

knightlie
Jun 1, 2012, 02:49 AM
Do you know how to discover an app's applescript dictionary?

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?

Sydde
Jun 1, 2012, 11:26 AM
I assume there's a way to execute AppleScript from within an application?

You could investigate the NSApplescript class.