How can you see if a folder has a folder action?

is there any way that OSX can show that a folder has a folder action applied to it?
I know you can use the contextual menu to see the action applied, but I’m wondering if you can make the generic folder icon change once an action is added

I’m also looking for a script that once a new folder is made in a specific location, it will attach a certain script to it? I have a feeling that this isn’t too difficult, but I haven;t looked into it, so I thought I would ask for advice.

Disclaimer: I don’t have Panther.

If I recall correctly, this was done automatically on pre-OS X systems. In OS X, you will likely need to do this manually, at least until icons can be scripted. Apple once provided a folder action icon that could be applied manually in OS X but I can’t locate it on their site now.

This folder action (untested) might be close to what you need.

on adding folder items to this_folder after receiving added_items
	repeat with item_ in added_items
		if folder of (info for item_) is true then
			tell application "System Events"
				attach action to item_ using alias "path:to:script"
			end tell
		end if
	end repeat
end adding folder items to

– Rob