O I see what he was trying to do....now I look like an idiot :( Sounds like a nifty script... just confused as to why you have to use the execute command within the function
hmm. well I'll go on a limb here - to do what you are trying to do, look up the 'execute' command. In all honesty using it is usually shonky, but if it's for a quick and dirty script why the hell not try it. :) There is another way to check for the presence of attributes/properties and then work on them - look up…