How do I implement this panel functionality?
I came across this panel here. Later, I realized it was exactly the functionality I needed.
https://community.adobe.com/t5/indesign-discussions/how-to-convert-units-within-a-dialog-window/m-p/14151789#M545441
I've been tinkering with it for a while but haven't gotten it to work.
When I select “Setting,” it executes the function below it. If “All (A, B, C)” is checked, it sequentially executes the three functions A, B, and C. Otherwise, it executes only one function.
When selecting “only open position,” it only opens the selected path.
Thanks.
//Open the path, such as the shortcut location:
//Base path, Local path
var bPath = app.scriptPreferences.scriptsFolder.parent.parent;
var zh_CN = bPath.fsName;
var localShortcut = zh_CN + "\\" + "InDesign Shortcut Sets" + "\\";
function ABC() {
onlyA();
onlyB();
onlyC();
}
function DEF() {
onlyD();
onlyE();
onlyF();
}
function onlyA() {
var doSomething;
}
function onlyB() {
var doSomething;
}
function onlyC() {
var doSomething;
}
function onlyD() {
var doSomething;
}
function onlyE() {
var doSomething;
}
function onlyF() {
var doSomething;
}

