Take the 2-minute tour ×  I've been toying around with
AppleScript and Automator to get this thing to work, but I just
can't seem wrap my head around it. If anyone could show me an
example or give me some tips on how I can set an application to
close at a specific time and then put the computer to sleep or
shutdown, it would be greatly appreciated.  share|improve this
question Would you like this to be done regularly or is this
something that you want to initiate manually? –  ephsmith Aug 11
'12 at 14:40 Do you have the AppleScript written already? – 
ephsmith Aug 11 '12 at 14:49 It's something I would like to be
done regularly and not have to worry about initiating. I did
have a script written but it was quite messy so I trashed it and
ended up here. Thanks for your answer. I'll give this a go and
hopefully it clears up the issues I've been having. –  Tomás
Richardson Aug 12 '12 at 8:41 if you want this done regularly,
then scheduling the job with at isn't what you want. cron or
launchd. If you want an easie