Thank you - that's the ticket.
For both tool and menu item I had ScriptingListenerJS active and it gave me the javascript for selecting a tool and also a menu item.
I will look into the creating tabs on the panel in html.
Another question:
I am working with the "Hello World" extension example and am a bit confused by the main.js file.
------------------
(function () {
'use strict';
var csInterface = new CSInterface();
// Reloads extension panel
function reloadPanel() {
location.reload();
}
function init() {
themeManager.init();
$("#btn_reload").click(reloadPanel);
$("#btn_test").click(function () {
csInterface.evalScript('sayHello()');
});
$("#new_doc").click(function () {
csInterface.evalScript('newDoc()');
});
$("#myNewDoc").click(function () {
app.documents.add();
});
}
init();
}());
-------------------
On the html page there is this: <button id="btn_test">Call ExtendScript</button>
On the main.js file there is this:
$("#btn_test").click(function () {
csInterface.evalScript('sayHello()');
});
What does the "$" mean and what does the "#" mean in front of "btw_test".
Thanks in advance - Sam