Quick File Path Help, Please.

All right I want to change the icon of a folder when a certain criteria is met, I want to do this through applescript.

Changing the icon of a file or folder is a lot harder than you might expect. Is changing the folder’s label sufficient for you? That way it will at least change color even though the folder still looks the same.