Re: Moving a file between two remote mounted volumes and maintaining creation / modification date
Re: Moving a file between two remote mounted volumes and maintaining creation / modification date
- Subject: Re: Moving a file between two remote mounted volumes and maintaining creation / modification date
- From: Rainer Standke <email@hidden>
- Date: Thu, 26 Mar 2009 10:09:19 -0700
You might want to look at man touch in the shell. At least at first
glance that should do what you are asking for.
Rainer
On Mar 26, 2009, at 9:41 , Jim Skibbie wrote:
I’m running into an issue trying to move a file located on a remote
unix server. The user has two afp mounted volumes mounted on their
desktop from this remote server.
When I move this file via the Finder manually, the file creation/
modification dates are preserved. I’m trying to use the Unix mv
command to move the file because:
• the folder where this file is located is invisible (.FolderName)
and the Finder doesn’t apparently like this;
• The Finder acts flaky anyways most of the time so I avoid
scripting the Finder at all costs.
When I use the mv command in a do shell script “mv -f /Volumes/
FirstMountedVolume/.Folder/this\ file /Volumes/SecondMountedVolume/
Folder2/”
The file moves with the mv command, but the creation and
modification date change to be the time when the file was moved.
Does anyone know of a way to move files and preserve the
modification date?
Thanks.
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to 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