• 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: Re: comparing and updating lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: comparing and updating lists


  • Subject: Re: Re: comparing and updating lists
  • From: Bis <email@hidden>
  • Date: Wed, 22 Jan 2003 11:56:35 +0000

thanks chris.

i have now got a script going to copy newly added files thanks to the people on this list. my next step is to try and activate the script using a time scheduling application like "T-Minus Ten" and seeing if i can get the script to check folders on the network for new files which have come in and copy them to a folder on my hard drive.

i have got OS9 at my work so the folder would have to be open. i don't quite understand how the folder action would work though in terms of what i want to do which is:

a) to mount shared disks on the network on to my desktop
b) periodically (say twice a day) check certain folders on the shared disks for newly added files
c) copy the newly added files to a folder on my desktop and
d) do various kinds of processing on the files

still i will definitely pursue the folder actions line of inquiry further if my present course of action turns out to be a dead end.

thanks again

bis



On Tuesday, January 21, 2003, at 06:33 AM, Bis wrote:

a newbie query about lists:

If I have two lists

list1 {"1","2","3"}
list2 {"1", "2", "3", "4"}

what i want to do is:
1) loop through both lists
2) get a list of those items which are in list2 but not in list1
3) copy the missing items from list2 to list1

What I eventually want to do is to have a script which checks a folder (list2) periodically for newly added files (like "4") and copies any newly added files to another folder (list1).

While it's certainly possible to do this yourself, it's also one of the things Folder Actions was designed for. Just attach a script with an "on items added" handler to the appropriate folder, and it will get called with the appropriate items. If you're using Mac OS X 10.2, the easiest way to do this is to install Script Menu and then use the Folder Action commands.

(Now the fine print: Folder Actions don't exist on 10.0 and 10.1. In Mac OS 9, they only work if the folder's window is open.)


--Chris Nebel
AppleScript Engineering


--
_______________________________________________
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.

  • Follow-Ups:
    • Re: Re: comparing and updating lists
      • From: email@hidden
  • Prev by Date: OS 9 - Package of running application file
  • Next by Date: Re: OS 9 - Package of running application file
  • Previous by thread: comparing and updating lists
  • Next by thread: Re: Re: comparing and updating lists
  • Index(es):
    • Date
    • Thread