• 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: Distribute File to all users
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Distribute File to all users


  • Subject: Re: Distribute File to all users
  • From: Skeeve <email@hidden>
  • Date: Thu, 18 Dec 2008 09:09:33 +0100

William J Sisti schrieb:
Yes that's exactly what I want to do.  Sorry for being confusing.

-Will


You want to copy the same SomeFile.webloc file to about 500 different
subdirectories on a server.  The subdirectories are named like this:

    HomeDirs/Students/GRADE_YEAR/USERNAME/

    where
        GRADE_YEAR = 2003, 2004, 2005 etc.
        USERNAME = an arbitrary string

Does that look correct?

I would do this with a shell script:

cd HomeDirs/Students/
for grade in 200? ; do
   for user in * ; do
       cp /path/to/SomeFile.webloc $grade/$user/Desktop/
   done
done

_______________________________________________
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: Distribute File to all users (From: William J Sisti <email@hidden>)

  • Prev by Date: Re: on blocking target applications' GUIs (was Re: Tell Blocks Considered Harmful)
  • Next by Date: Re: ersatz list-mom moment (was Re: Tell Blocks Considered Harmful)
  • Previous by thread: Re: Distribute File to all users
  • Next by thread: applescript shell script SCP?
  • Index(es):
    • Date
    • Thread