Page 1 of 1
Captions for All-In-One script
Posted: 10 Oct 2008 16:19
by ivan
I would like to know if scripting currently supports assigning captions to the appearing menus when there are multiple separate scripts present.
For example, I have a KS configured to run this script:
When I hit that KS, a pop-out window appears that gives me a choice of which one to run but it displays them in the way of script code. What I'd like to do is to assign a bit of text to each one of those so when that pop-up window appears instead of code I get "Save All Settings" and "Remove spaces" so on and so forth.
Is something like this currently possible? It would be a shame if it is not and I guess it will have to be added to wishlist for scripting 2.0
Re: Captions for All-In-One script
Posted: 10 Oct 2008 16:40
by serendipity
Code: Select all
"Save setting"
#182;
"Remove space"
rename s, " /";
Re: Captions for All-In-One script
Posted: 10 Oct 2008 16:51
by ivan
serendipity wrote:Code: Select all
"Save setting"
#182;
"Remove space"
rename s, " /";
Thank you, it's partially what I was after. The hiccup that I see with it is that it places the description above the code, which is still displayed. It would be much better if the code is replaced with text strings. This is especially useful when creating an AIO script that will have lots of possibilities and placing the text strings above instead of replacing the code will increase the consumed space exponentially.
P.S.
It seems to be possible in jacky's AutoUpdater here:
http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=2886
but I can't figure out how it's done...
Re: Captions for All-In-One script
Posted: 10 Oct 2008 17:37
by serendipity
ivan wrote:serendipity wrote:Code: Select all
"Save setting"
#182;
"Remove space"
rename s, " /";
Thank you, it's partially what I was after. The hiccup that I see with it is that it places the description above the code, which is still displayed. It would be much better if the code is replaced with text strings. This is especially useful when creating an AIO script that will have lots of possibilities and placing the text strings above instead of replacing the code will increase the consumed space exponentially.
P.S.
It seems to be possible in jacky's AutoUpdater here:
http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=2886
but I can't figure out how it's done...
If you start a script on new line (like I have done above) there has to be a space before the script (2nd and 4th lines), else you will see both the caption and the code.
But in any case the syntax is:
Code: Select all
["<caption>[ : <label>]"][<script>]
So you can actually have it like this:
Code: Select all
"Save setting" #182;
"Remove space" rename s, " /";
By the way, why don't you read the wiki?
Its all there.
Re: Captions for All-In-One script
Posted: 10 Oct 2008 18:07
by ivan
Thank you again. WIKI for a piece of software is something I'm gradually getting used to
