• 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: "Mark J. Reed" <email@hidden>
  • Date: Mon, 6 Dec 2010 10:12:52 -0500

On Mon, Dec 6, 2010 at 9:23 AM, Luther Fuller <email@hidden> wrote:
My recent experience is that ...

do shell script "cp -np " & sourcePath & space & targetPath

does NOT preserve comments. I have to write the comment of the source file to the new file, via tell Finder, whenever I use this.

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.

-- 
Mark J. Reed <email@hidden>

 _______________________________________________
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: Luther Fuller <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>)

  • Prev by Date: Re: Sorting a list of aliases
  • Next by Date: Re: Given a POSIX Path...
  • Previous by thread: Re: Given a POSIX Path...
  • Next by thread: Re: Given a POSIX Path...
  • Index(es):
    • Date
    • Thread