Hi. This is part of the code of an AppleScript:
Once I run it I get error "Variable 'filetype' is not defined". Can you help me please? Is there another way to do this? Thank you.
Code:
set filetypeword to choose from list {"1", "2", "3", "4", "5", "6", "7"} with prompt "XXXXX" with title "XXX" default items 1 without empty selection allowed
if filetypeword is equal to "1" then
set filetype to "l"
else if filetypeword is equal to "2" then
set filetype to "f"
else if filetypeword is equal to "3" then
set filetype to "d"
else if filetypeword is equal to "4" then
set filetype to "l -type f"
else if filetypeword is equal to "5" then
set filetype to "l -type d"
else if filetypeword is equal to "6" then
set filetype to "d -type f"
else if filetypeword is equal to "7" then
set filetype to "l -type f -type d"
end if
do shell script "XXXXX" & filetype & "XXXXX"
Once I run it I get error "Variable 'filetype' is not defined". Can you help me please? Is there another way to do this? Thank you.