There is no difference, but plain AppleScript might be more tolerant about your syntax errors
choose from list returns a list or boolean false if the user has pressed “Cancel”
set auswahl to choose from list {"1", "2", "3", "4"} with prompt "Select a number"
if auswahl is false then
-- do some error handling
end
display dialog item 1 of auswahl
set auswahl to choose from list {"1", "2", "3", "4"} with prompt "Select a number"
if auswahl is false then
-- do some error handling
end if
set newvar to auswahl
display dialog newvar
I don’t really understand your question, but this seems to be what you’re getting at.
assign item 1 of auswahl to another variable or do it this way
set auswahl to (choose from list {"1", "2", "3", "4"} with prompt "Select a number") as string
if auswahl is "false" then
-- do some error handling
end if
display dialog auswahl
choose from list {"1", "2", "3", "4"} with prompt "Select a number"
tell result
if it is false then error number -128 -- cancel (or whatever)
set auswahl to first item
end tell
-- log class of result
display dialog auswahl
Why create a new variable for this?
This will coerce any Unicode text (well, sort of) or numbers to string. (Check the class of result in my script.)