externalsCommands

Sarah Reichelt sarah.reichelt at gmail.com
Fri Jan 13 18:43:49 EST 2006


OK, problem solved, but here it is for anyone else who needs it. This
info applies to Rev 2.6.1 on Mac OS X 10.4.3 I haven't tested it on
any other systems.

If you build a standalone that uses speech, the revspeech.bundle is
included in the app package and all the speech commands and functions
work. However testing whether they are there using:
  get the externalPackages of stack "Main"
  get the externalCommands of stack "Main"
  get the externalFunctions of stack "Main"
all return empty.

It is possible to set the externals of the stack directly using the
full path to the revspeech.bundle but that seems unnecessary.

If you need to test whether the speech library has really been loaded,
you need to check another way. The standalone builder adds a stack
called "revExternalLibrary" and makes it one of the stacksInUse. It is
this stack that loads the external package, so you can test:
  get the externalPackages of stack "revExternalLibrary"
  get the externalCommands of stack "revExternalLibrary"
  get the externalFunctions of stack "revExternalLibrary"

I don't know what other libraries this will apply to, I expect the XML
library at least and possibly the database libraries.

Hopefully this will stop others going through the same process I had
to to find why my app thought that speech wouldn't work :-)

Cheers,
Sarah



More information about the use-livecode mailing list