Re: I really need your help
Re: I really need your help
- Subject: Re: I really need your help
- From: email@hidden (Michael Sullivan)
- Date: Fri, 8 Nov 2002 16:16:58 -0500
- Organization: Society for the Incurably Pompous
Syllas Rodner <email@hidden> writes:
>
I need a script that could accomplish the following task :
>
Copying all new items or modified ones from a source folder to a destination
>
folder
>
and delete all items in the destination folder that are not in the source
>
folder.
>
I just want the two folders and their subfolders to be synchronised.
>
I' ve developped a script that could do it but it's very very slow.
>
There's a software that could accomplish this task but the functionality I
>
need is not scriptable
>
Please let me know if you have any idea
Post your Script!
Chances are someone here will spot the slowdown and give you a
suggestion for fixing it, and can do so in a few minutes.
Writing a whole general purpose script to solve your problem for you
might take an hour or even a day of work. I can do that, but I normally
charge for it, same goes for about a dozen professional applescript
developers on the list.
I'll just give you a quick hint -- the key to speeding up applescripts
is to cut down on the number of events that get passed. So try to get
the finder (or whatever you are driving to check/copy the files) to do
as many things in one AS instruction as possible. If you can copy a
whole folder or large group of files, instead of one file at a time,
your script will be much faster.
Try getting all the information from the finder at once, using that
infomation (outside of a finder "tell block") to build a list of files
to be copied, another list of files to be deleted, etc. then find a way
to give that whole list (or large portions of it) to the finder in a few
instructions.
Michael
--
Michael Sullivan
Business Card Express of CT Thermographers to the Trade
Cheshire, CT email@hidden
_______________________________________________
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.