At the end i need to be able to press go and create the script that will be equivalent
finding the path to the particular tool. which we can as discussed either create a menu and include the tools in that, or
Code: Select all
answer file "Please select the path to your toolset"
put it into tPath
if tPath is not empty then
put tPath into tWinPath
replace "/" with "\" in tWinPath
end if
put tWinPath into field "fldToolsetPath"
in the initial example it's something like w070n10.hgt.zip i would need to find that file.
Then the output file. direct the program to output to that file.
and then a big button that puts them all together like this example.
Code: Select all
set PATH=e:\flightgear\terragear;%PATH%
hgtchop 3 e:\flightgear\terragear\N07W071.hgt.zip e:\flightgear\work
I know the design keeps changing but i'm trying to figure out the best way for it to work.

For number 1 i have the following script.
Code: Select all
on mouseUp
answer file "Please select the tool you require"
put it into tPath
if tPath is not empty then
put tPath into tWinPath
replace "/" with "\" in tWinPath
end if
put tWinPath into field "toolsetchoice"
put field "toolsetchoice" into field "finalchoice"
end mouseUp
number 3 is the "options" field
number4 is the "fileselect" and has this script
Code: Select all
on mouseUp
answer file "Please select the file you require"
put it into tfilechoice
if tfilechoice is not empty then
put tfilechoice into tWinPath
replace "/" with "\" in tWinPath
end if
put tWinPath into field "filechoice"
put field "toolsetchoice" && field "options" && field "filechoice" into field "finalchoice"
end mouseUp
number six is Field "finalchoice"a text box to show the user all they have selected so far.
i hoped that adding this to the script above would do it.
Code: Select all
put field "toolsetchoice" && field "options" && field "filechoice" into field "finalchoice"
ie between the options selection and the file selection there are two number 1's that i havent asked to be there, gatecrashers if you will!
number seven is the button to initiate the full command, i havent worked tht out yet. I also need to add the output file select as well.
as i mentioned its the options field that gives me a headache. In total there are about 30 different options for the 20 tools.
would it be easier to create a new stack for each tools options? how would i go about that.
I'm semi impressed with myself as i think i am picking up stuff fairly quickly, but i know i have barely started.