Collect all kinds of applescript programming exceptions and fault solutions.

Can't get every folder of /path/

I write a code as
set localaccount to {"1", "2"}
set locacc to choose from list localaccount with prompt "Select your Account Location:" default items {"1"...

Is there a range function to create a list of numbers?

I'm looking to make a consecutive list of numbers in Applescript. One could create such a list using a repeat loop, but that seems messy. Is there anything that works like this?
range from 1 to 10...