Can't set comment for folder?

OK, here’s a weird one. I’ve got a script that allows me to set a file comment for items in a selection. I want to use it to tag which folder’s I’ve backed up and when, but when I run it with a folder in the selection, it acts like it works (no error message) but doesn’t set the comment.

Any ideas?

set myComment to text returned of (display dialog "Enter comment text" default answer "Backed up")
tell application "Finder"
	copy the selection to myList
	repeat with myItem in myList
		set the comment of myItem to myComment
	end repeat
end tell

Model: iMac DV+
AppleScript: 1.9.1
Browser: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv: Gecko/20060214 Camino/1.0
Operating System: Mac OS X (10.2.x)

Works fine here. Edit: Even in Script Editor.

Model: Mac mini
AppleScript: 1.10.6
Browser: Safari 2.0.3 (417.9.2)
Operating System: Mac OS X (10.4)

Just tried it again and it works fine from script menu. Running the script in the editor didn’t work.

uh…Nevermind… :cool: