Re: Given a POSIX Path...
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