Posso eseguire uno script se una variabile ha solo tra 4 e 6 caratteri?
es
set serialNumber to ""
set theLength to (get length of (serialNumber as text))
if theLength is equal to 1 then
set serialNumber to "No Serial"
else if theLength > 4 and < 6 then
##do this
else if theLength is greater than 6 then
## do nothing
end if
Ovviamente non funziona: else if theLength > 4 and < 6 then