Created
January 25, 2010 06:23
-
-
Save matthewmccullough/285667 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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_storefilesI may not be an expert, but
tell application "Finder"andget commentwould only use the comments stored in the.DS_storefiles, which are deleted now. We cannot access the extended attributes throughtell application "Finder".Or can we?
Did you solve it eventually?
Thanks,
ppseprus