Re: comments stripped out by MV or MVMAC shell script
Re: comments stripped out by MV or MVMAC shell script
- Subject: Re: comments stripped out by MV or MVMAC shell script
- From: Sander Tekelenburg <email@hidden>
- Date: Mon, 25 Apr 2005 09:59:02 +0200
At 22:54 -0400 UTC, on 2005/04/24, Doughtie, Dan wrote:
> Have an applescript with several shell scripts. One shell script
>successfully puts text into the comments field of the file.
>
> Then we've got a shell script that moves the file to another folder. We
>tried MV and MVMAC and it moves the file and handles the permisions but it
>strips out the Comments. Anyone know how to move a file and keep the
>Comments. We use the Comments to tell another system how to handle a the
>file. We can't use a Finder Move because we actually turn the Finder off for
>reasons too long to explain here.
Interesting. I would have expected ditto -rsrc to handle this, but it too
loses the comment.
I suppose you could first read the comments field, then move the file, than
write the comment to it again. Or encode/compress the file, move it,
decode/decompress it, if you're willing to waste that much CPU on it ;)
--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden