Skip to content

Instantly share code, notes, and snippets.

@matthewmccullough
Created January 25, 2010 06:23
Show Gist options
  • Select an option

  • Save matthewmccullough/285667 to your computer and use it in GitHub Desktop.

Select an option

Save matthewmccullough/285667 to your computer and use it in GitHub Desktop.
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
end if
end if
end repeat
end tell
@ppseprus
Copy link
Copy Markdown

Hey there,
Could you find a solution for this?
I was trying to.. sort of set Finder windows back to default, but I forgot about the Spotlight Comments, and I deleted the .DS_store files
I may not be an expert, but tell application "Finder" and get comment would only use the comments stored in the .DS_store files, which are deleted now. We cannot access the extended attributes through tell application "Finder".
Or can we?
Did you solve it eventually?
Thanks,
ppseprus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment