• 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: Help -- going posix space crazy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help -- going posix space crazy


  • Subject: Re: Help -- going posix space crazy
  • From: John Delacour <email@hidden>
  • Date: Sat, 22 Feb 2003 09:22:16 +0000
  • Mac-eudora-version: 6.0a7

At 1:15 am +0000 22/2/03, has wrote:

Marc Glasgow wrote:

do shell script "mv " & PosixOldFile & " " & PosixNewFile

mv trashes resource forks. Use the Finder.


ditto allows you to preserve the fork. This moves a Mac file from the desktop to the documents folder:

set f to "~/desktop/some\\ file"
set dir to "~/documents"
do shell script "ditto -rsrcFork " & f & space & dir

JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Help -- going posix space crazy (From: has <email@hidden>)

  • Prev by Date: Re: Applying a Script to a Mail message
  • Next by Date: Re: Help -- going posix space crazy
  • Previous by thread: Re: Help -- going posix space crazy
  • Next by thread: Re: Help -- going posix space crazy
  • Index(es):
    • Date
    • Thread