removing comments from comment field...

HI,
I’m looking for a script to remove all comments from comment fields.

-- Remove Finder Comment (AppleScript)
-- Copyright © 1997 Mizutori Tetsuya

tell me to open {(choose file)}

on open (docList)
	local theItem
	--
	tell application "Finder"
		repeat with theItem in docList
			set the comment of theItem to ""
		end repeat
	end tell
end open

Hi :slight_smile:
Here another suggestion for items in folder (with only 1 instruction 8)) :

tell application "Finder" to set comment of (items of (choose folder)) to ""

… or, if you want inser your comments :

tell application "Finder" to set comment of (items of (choose folder)) to ¬
	text returned of (display dialog "Your comment :" default answer "" with icon 1)

… or, by drag&drop :

on open
	tell application "Finder" to set comment of selection to ¬
		text returned of (display dialog "Your comment :" default answer "" with icon 1)
end open

:wink: