Calling Applescript from Excel

  • Thread starter gimme_this_gimme_that
  • Start date
G

gimme_this_gimme_that

Now that M$ is mulling over a conversion from VBA to Applescript ...

Is there a way to call Applescript from VBA?

That would allow developers to make controls (such as dropdowns and
buttons) whose triggers evoke Applescript instead of VBA.

Something like a VBA editor for Applescript would be great.

Is there a way in Applescript to associate a button in Excel with a
Applescript event?

Thanks.
 
J

JE McGimpsey

Now that M$ is mulling over a conversion from VBA to Applescript ...

Nope, not mulling. They're dropping VBA from Office2008. The OLE hooks
will still allow control of XL via AppleScript.
Is there a way to call Applescript from VBA?

Yes, use the MacScript() method.
That would allow developers to make controls (such as dropdowns and
buttons) whose triggers evoke Applescript instead of VBA.

This has been available since at least MacOffice98.
Something like a VBA editor for Applescript would be great.

You can use the basic Script Editor.app, of course, or the XCode IDE
(including AppleScript Studio). And there are intermediate packages:
Script Debugger, Smile, etc.
Is there a way in Applescript to associate a button in Excel with a
Applescript event?

Currently you can use Applescript to modify the XL U/I, so you can use
Applescript to set the OnAction property of a button.

That won't be available in Office2008, since the OnAction property calls
a VBA routine.

However, you can already use the system to call applescript routines
now, by putting the applescripts in the script menu (the system one for
now, we'll see whether Office apps get their own script menus).
 

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