• 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: How do I schedule a script.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I schedule a script.


  • Subject: Re: How do I schedule a script.
  • From: Axel Luttgens <email@hidden>
  • Date: Sun, 18 Jan 2004 12:38:43 +0100

Pablo Misas wrote:

Hello all:

I'm running system 10.3. I want to schedule a script that runs weekly and deletes all users in the users folder.
Does anyone have a similar scenario and could enlighten me?

I'm working on the script right know and that is no problem, the scheduling part is the one that is worrying me..


You already got some suggestions. I would go along Doug's one, with just an addition: man osascript, if you want to go with AppleScript.

But could you be a bit more precise about what you exactly want? I'm a rather afraid about the idea of just deleting users home directories...
How does it come that such directories appear on a regular basis?
Why should you have to delete them; are they somehow irregular?
And what about the users accounts then?

Now, such a job needs sufficient rights.
On the other hand, you seem to think about an automated operation, that should even run unattended (with no user logged in).
So, it seems it should be run, from the shell, as root (hence the cron way).
Moreover, I would go with a shell script anyway; what if your AppleScript, for any reason, displayed an error message while running unattended?

Just some questions that appeared to me while reading your message.
HTH,
Axel







By the way, I know it's a bit late but happy new year to all...
_______________________________________________
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.
_______________________________________________
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: How do I schedule a script.
      • From: Axel Luttgens <email@hidden>
References: 
 >How do I schedule a script. (From: Pablo Misas <email@hidden>)

  • Prev by Date: Re: latitude & longitude
  • Next by Date: Re: Slashes in filenames (was: Elementary fie naming question)
  • Previous by thread: Re: How do I schedule a script.
  • Next by thread: Re: How do I schedule a script.
  • Index(es):
    • Date
    • Thread