set defaultLocation to alias "Work_Files:TESTING:"
But, I was not watching carefully and wrote ...
set defaultLocation to alias "Work_Files:TESTING:TEST.sparsebundle"
"Choose a folder ..."
choose folder with prompt the result default location defaultLocation
Yes, I know that a sparsebundle file is really a folder, but the response of 'choose folder ...' gives an unsophisticated user a opening to do grievous mischief to themselves. My script is about to create a sparsebundle in the location chosen by the user.
Of course, I can (and will) test defaultLocation with ...
class of (item defaultLocation) is folder
But, shouldn't 'choose folder ...' do that?