This is what I have right now. as you can see there are 3 variables that carry the needed info. U
ltimatley I'd like to have about 8 variables, all with different info.
I can do a repeat for each one until something is entered, but I cant do a back command for each entry.
That's the purpose for the "run 'script'" line in each section. I'd have to do a repeat inside of a repeat and then overlapping repeats.
It won't let me do overlapping repeats. what's the solution?
run scriptfn
script fn
set first_name to ""
set fName to display dialog "first name" default answer "" buttons {"cancel", "next"} default button "next"
set first_name to text returned of fName
if first_name = "" then
runfn
end if
end script
-- Last Name
run scriptln
script ln
set last_name to ""
set lName to display dialog "last name" default answer "" buttons {"back", "cancel", "next"} default button "next"
if button returned of lName = "next" then
set last_name to text returned of lName
else if button returned of lName = "back" then
runfn
end if
if last_name = "" then
run ln
end if
end script
-- street number
run scriptsn
script sn
set s_num to ""
set sNum to display dialog "street number" default answer "" buttons {"back", "cancel", "next"} default button "next"
if button returned of sNum = "next" then
set s_num to text returned of sNum
else if button returned of sNum = "back" then
run ln
end if
if s_num = "" then
run sn
end if
end script
-- ready steady write!
display dialogfirst_name & last_name & s_num