Re: Please re-write my script
Re: Please re-write my script
- Subject: Re: Please re-write my script
- From: Rounak Jain <email@hidden>
- Date: Wed, 30 Sep 2009 10:13:58 +0530
Now, its ready for your eyes.
I have done away with 50% of the original code. (Thanks to Christopher's suggestion of using flags instead of "on error" and my noticing a difference between mv and cp command)
cp -r "folder1"/ "folder2" copies contents of folder1 to folder2 cp -r "folder1" "folder2" copies folder1 to folder2
I had assumed similar behavior with mv command. But I was wrong.
Don't bother to look at the script. There's more work to be done. On Sep 30, 2009, at 9:16 AM, Rounak Jain wrote: I made an attempt to improve it myself.
It works perfectly (So don't think about the first line in the script. Just know that the variable "theitems" contains some paths.) Please comment.
|
_______________________________________________
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