• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Given a POSIX Path...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Given a POSIX Path...
      • From: Doug McNutt <email@hidden>
References: 
 >Re: Given a POSIX Path... (From: Shane Stanley <email@hidden>)
 >Re: Given a POSIX Path... (From: Thomas Fischer <email@hidden>)
 >Re: Given a POSIX Path... (From: "Mark J. Reed" <email@hidden>)
 >Re: Given a POSIX Path... (From: Luther Fuller <email@hidden>)
 >Re: Given a POSIX Path... (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Given a POSIX Path...
  • Next by Date: Re: Finder error problem?
  • Previous by thread: Re: Given a POSIX Path...
  • Next by thread: Re: Given a POSIX Path...
  • Index(es):
    • Date
    • Thread