edit folder action import script to change label color

How can I edit the folder action import script to change the color label of the original file once imported? I would like to be able to see what has already been imported, compare it with the database, then move to trash if needed.

Thanks

Just replace…


				if thePath does not end with ".download:" then
					tell application id "com.devon-technologies.thinkpro2" to import thePath to incoming group
				end if

…with…


				if thePath does not end with ".download:" then
					tell application id "com.devon-technologies.thinkpro2" to import thePath to incoming group
					tell application "Finder" to set label index of theItem to 1
				end if