• 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: Please re-write my script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. 

http://tinyurl.com/yg7qloy

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. 

http://tinyurl.com/yg7qloy

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

References: 
 >Re: Please re-write my script (From: Rounak Jain <email@hidden>)

  • Prev by Date: Re: Please re-write my script
  • Next by Date: Move email to outbox using Apple script
  • Previous by thread: Re: Please re-write my script
  • Next by thread: TextEdit window not marked as changed
  • Index(es):
    • Date
    • Thread