I have a script to produce a custom palette that works perfectly well when run in a MM notebook, but when I try to run it as a standalone Wolfram script, it produces the dreaded:
FrontEndObject::notavail: A front end is not available; certain operations require a front end.
The script does a number of other things that may also require access to the FrontEnd, but it appears from this post that it is the attempt to create a notebook (palette) that is the root of the problem.
Have I understood the limitation correctly? And is it also correct that there is really no way around this, other than to run the script in a MMA notebook, as I can do presently?
What I don't get is this: even if it is not possible to open a new notebook to access the frontend, why is it not possible to access any necessary frontend functionality via an already open MMA notebook (i.e. to enable the script to establish a connection to the frontend via a named, currently open notebook?'