Re: Given a POSIX Path...
Re: Given a POSIX Path...
- Subject: Re: Given a POSIX Path...
- From: Luther Fuller <email@hidden>
- Date: Mon, 06 Dec 2010 09:29:41 -0600
On Dec 6, 2010, at 9:12 AM, Mark J. Reed wrote: I sit corrected; the comments seem to be keyed by filename. So if I rename a file with "mv", its comment disappears. If I then rename it back to the original name, the comment reappears.
Further, if I create an entirely different file but give it the original filename, it inherits the comment associated with the name.
A few caveats - the presence of an active alias to the file appears to cause the comment to follow it through the mv. And a new file with the original name doesn't seem to get the comment if the original file still exists under a new name - but as soon as the original file is removed, the comment appears on the new file.
Perhaps related? I have been trying to find a fix for many months for a problem where 1 file in 1000 copied with 'cp' looses its Finder comment, however the metadata 'kMDItemFinderComment' key still contains the correct comment. (I've written a small script to detect and correct this.)
You might want to check the value of 'kMDItemFinderComment' when you encounter the conditions in your caveats.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden