You need to uncomment out your properties so that trigger actually has a value =)
property QHa0507 : "curtis:adpdfs:QHa0507:finalpagesQHa0507" as alias
property QHb0507 : "curtis:adpdfs:QHb0507:finalpagesQHb0507" as alias
property QHa0607 : "curtis:adpdfs:QHa0607:finalpagesQHa0607" as alias
property badnames : "curtis:adpdfs:badnames:" as alias
property trigger : "curtis:adpdfs:trigger:" as alias
As for the exit repeat thats right here
try
set theFiles to files of entire contents of trigger
on error tError
display dialog tError giving up after 10
exit repeat
end try
Instead try this
try
set theFiles to files of entire contents of trigger
on error tError
display dialog tError giving up after 10
return 30
end try