Copy file across volumes
Copy file across volumes
- Subject: Copy file across volumes
- From: Simon Forster <email@hidden>
- Date: Thu, 28 Jul 2005 12:57:42 +0100
What's the most reliable method for copying files across volumes?
If I get the Finder to copy the files, occasionally I've received a
"Finder is busy" message. I suppose I could trap for this error but
then how? Perhaps more pertinently, how do I reproduce this error so
that I can test my workaround?
If I use System Events, I don't seem to be able to traverse volumes.
And anyway, the move command will quietly fail without any error. If
the file's not moved / copied, I need to know and deal with it.
(Do shell script) cp dumps the resource fork - unless I use CpMac.
But not every machine has CpMac installed. (Although I suppose I
could create an Application bundle and include CpMac in this).
To put this into some context, an application calls a function of an
attached script once a file has been created. This file then needs to
be copied to an external firewire drive and to an Xserve immediately
and reliably. Actually, I'll probably need to create some form of
queuing mechanism so that the function returns quickly enough to be
called again a fraction of a second later.
Such a simple brief but...!
TIA
Simon Forster
_____________________________________________________
LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
Tel: +44 (0)70 9230 5244 Fax: +44 (0)70 9230 5247
_____________________________________________________
In theory, theory and practice are the same.
In practice, they're not.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden