Yes it is.
That sounds pretty reasonable.
Is that you asking for some sort of support, or someone to build it for you?
I’m going to assume the former and you just need a nudge to tell you that you are on the right lines and perhaps some pointers to what you might need.
Now, you could roll your own from scratch, but I’m going to point you instead to a couple of my action groups that include actions that will take out a lot of the prompt and trigger coding that would otherwise be required, allowing you to focus just on the population of an array of action names.
In the ThoughtAsylum action group there is a helper action called
This is a helper action called from another action that sets up several template tags to populate the menu.
There is an example action in the ThoughtAsylum - Power User action group called
TAD-Info Menu that you can clone to build your own action menu.
actionnames template tags to list the buttons and the actions they trigger (first line in one maps to first line in other, etc.
promptmessage template tags to specify the name and message for the prompt the user chooses from for which action to run.
The ThoughtAsylum - Power User action group, as noted above, contains
You could duplicate this action, and modify it to use a script to set the
action names tags.
I would recommend looking at the following to help you build a list of action names, and to set the two template tags (for your use case they would be identical).
- Action Group
- “Find” your action group to get access to an array of action objects.
- Each action object has a “name”.
- Get the name of each of those actions and build a list with each action name on a new line. A good way to do this is to build an array of just the names and “join” them together with new line “
\n” characters for example.
- “Set” the two “template tags” of the current draft to be the list, and your action should be all set.
Hope that helps.
Give it a try. If you get stuck, post your code and people will be able to point you in the right direction.