Skip to content

Instantly share code, notes, and snippets.

tell application "Finder"
activate
set these_items to the selection
log these_items
repeat with this_item in these_items
set item_name to (get displayed name of this_item)
if item_name is not ".DS_Store" then
set current_com to (get comment of this_item)
if current_com is not "" then
set comment of this_item to current_com as string