JSL has been enormously helpful for me in my work. Thanks all for your inputs.
I'm running a script which concantenates two files. I'd like to prompt the user when it's complete (or before it starts, doesn't matter) for what s/he would like to name the data table. The user can then save the data table later if s/he is happy with it. I don't want to obligate a file save just after table creation.
I searched online and could not find anything directly applicable.
There are examples in the Scripting Guide that should help you to interpret the simple example I am providing below.
Names Default To Here( 1 );
dt = Current Data Table();
nw = New Window( "Name data table",
Text Box( "What do you want to name the data table?" ),
tableName = Text Edit Box( " ", <<set width( 400 ) )
If( nw["button"] == 1 & nw["tableName"] != "",
dt << set name( nw["tableName"] )