• 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
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]

Moving a file between two remote mounted volumes and maintaining creation / modification date


  • Subject: Moving a file between two remote mounted volumes and maintaining creation / modification date
  • From: Jim Skibbie <email@hidden>
  • Date: Thu, 26 Mar 2009 11:41:47 -0500
  • Thread-topic: Moving a file between two remote mounted volumes and maintaining creation / modification date

Title: Moving a file between two remote mounted volumes and maintaining creation / modification date
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:

  1. the folder where this file is located is invisible (.FolderName) and the Finder doesn’t apparently like this;
  2. 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      (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: Steve Thompson <email@hidden>
    • Re: Moving a file between two remote mounted volumes and maintaining creation / modification date
      • From: Rainer Standke <email@hidden>
  • Prev by Date: Re: Applescript newbie trying to do something easy
  • Next by Date: Re: Moving a file between two remote mounted volumes and maintaining creation / modification date
  • Previous by thread: Link working again! (Introduction to AppleScript Language Guide)
  • Next by thread: Re: Moving a file between two remote mounted volumes and maintaining creation / modification date
  • Index(es):
    • Date
    • Thread