Re: Moving Items
Re: Moving Items
- Subject: Re: Moving Items
- From: Luther Fuller <email@hidden>
- Date: Tue, 12 Jul 2011 13:01:56 -0500
On Jul 11, 2011, at 8:30 AM, Wayne Melrose wrote: On 11. juli 2011, at 15.16, Luther Fuller wrote: I think I'm stuck with using the Finder.
'do shell script "cp ..." ' won't work because it doesn't preserve comments.
This pops up a bit on the list.. I thought there was a workaround for this? I know it's been discussed, I searched and found some info about mv and if you do not rename, it will preserve etc.. but I'm not sure if this helps in your case. I also thought that ditto actually preserved, although testing this myself, it doesn't seem to.. Pointless post by me really.. :) But I feel for you!
So, (after waiting a couple of hours for a power outage to clear) I tried using 'ditto'. This script ...
set sourcePath to (quoted form of (POSIX path of sourceAlias)) set targetPath to (quoted form of (POSIX path of targetDisk)) do shell script "ditto " & sourcePath & space & targetPath
does exactly what I need. Folder list view columns are preserved as is the data contained in them. There is no progress bar (bad), therefore there no "X" button (good). The user can't Cancel, thus screwing up his data. I will use my blinking dialog to notify the user that something is in progress.
|
_______________________________________________
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