• 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: Moving a file between two remote mounted volumes and maintaining creation / modification date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Moving a file between two remote mounted volumes and maintaining creation / modification date
      • From: Jim Skibbie <email@hidden>
References: 
 >Moving a file between two remote mounted volumes and maintaining creation / modification date (From: Jim Skibbie <email@hidden>)

  • Prev by Date: Moving a file between two remote mounted volumes and maintaining creation / modification date
  • Next by Date: Recycling Email Drafts in Mail
  • Previous by thread: Moving a file between two remote mounted volumes and maintaining creation / modification date
  • Next by thread: Re: Moving a file between two remote mounted volumes and maintaining creation / modification date
  • Index(es):
    • Date
    • Thread