Is there a way to get user input for a script?
The problem is that right now I have different actions to add "Acoustic", "Live", "Unplugged", "Demo", "Unreleased", etc. to the title of songs, when actually, all those actions do the same: Format the TITLE value to add a string. Sometimes I need to add a different string to the titles, and I have to create a new action for that. If my action asked me for input, I could do all the above things (and new things I might need in the future) with a single action.
Also, sometimes I like to remove a certain string from a tag field. If scripts could get user input and work with that, one single action could be used to remove any undesired value from your tags.
I'm sure there are other possible uses for this, but these are the ones I need the most.
My suggestion is to implement something like variables. The first time a variable is used, the script will ask the user for input, and from there on, it will retain its value while the script is running.
Format value TITLE: %title% '['$1(Enter string to append)']'
Would show a small inputbox with the name of the action as the title and the text in between () as the message, and of course, a textbox. After that, $1 will contain the value entered by the user. If he entered "Acoustic", the tag would perform the same as the action I'm currently using: Format value TITLE: %title% '[Acoustic]'.
What do you think, would this be possible to implement with the current scripting system? Do you share my view on the benefits this would bring?
Looking forward to your replies.