Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > Re: Any way to ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 22 of 26 Topic 1546 of 1647
Post > Topic >>

Re: Any way to get Software Update to run in the background at a specified time of the day?

by Sander Tekelenburg <user@[EMAIL PROTECTED] > Dec 8, 2007 at 03:46 PM

In article <1i8s24j.w4cbum1nflvbhN%nospam@[EMAIL PROTECTED]
>,
 nospam@[EMAIL PROTECTED]
 (Richard Maine) wrote:

> Jamie Kahn Genet <lists@[EMAIL PROTECTED]
> wrote:
> 
> > > - read man softwareupdate
> 
> > I'm not sure that sounds safe. I really just want to be notified [...]
> 
> I haven't done it, but from reading the man page, it sounds like
> 
>   softwareupdate --list
> 
> can tell you if there are any updates available

Exactly. Wrapped in AS, it could be something along these lines:

set theResult to do shell script "/usr/sbin/softwareupdate -l"
if theResult contains "Software Update found the following new or 
updated software:" -- updates are available
  -- do somethign useful
elseif theResult contains "recommended" -- one or more recommended 
updates are avaliable
  -- do somethign useful
end

-- 
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>

Mac user: "Macs only have 40 viruses, tops!"
PC user: "SEE! Not even the virus writers sup****t Macs!"
 




 26 Posts in Topic:
Any way to get Software Update to run in the background at a spe
lists@[EMAIL PROTECTED]   2007-12-08 17:35:09 
Re: Any way to get Software Update to run in the background at a
Warchild <bob@[EMAIL P  2007-12-07 22:15:52 
Re: Any way to get Software Update to run in the background at a
Don Bruder <dakidd@[EM  2007-12-07 21:37:12 
Re: Any way to get Software Update to run in the background at a
lists@[EMAIL PROTECTED]   2007-12-08 18:51:40 
Re: Any way to get Software Update to run in the background at a
Jolly Roger <jollyroge  2007-12-08 11:40:27 
Re: Any way to get Software Update to run in the background at a
lists@[EMAIL PROTECTED]   2007-12-09 09:06:14 
Re: Any way to get Software Update to run in the background at a
russotto@[EMAIL PROTECTED  2007-12-08 19:11:38 
Re: Any way to get Software Update to run in the background at a
lists@[EMAIL PROTECTED]   2007-12-09 16:09:23 
Re: Any way to get Software Update to run in the background at a
Jeffrey Goldberg <nobo  2007-12-09 11:04:48 
Re: Any way to get Software Update to run in the background at a
Barry Margolin <barmar  2007-12-08 11:45:31 
Re: Any way to get Software Update to run in the background at a
"G.T." <getn  2007-12-08 10:40:12 
Re: Any way to get Software Update to run in the background at a
lists@[EMAIL PROTECTED]   2007-12-09 09:06:12 
Re: Any way to get Software Update to run in the background at a
Barry Margolin <barmar  2007-12-09 17:56:11 
Re: Any way to get Software Update to run in the background at a
Don Bruder <dakidd@[EM  2007-12-08 15:47:36 
Re: Any way to get Software Update to run in the background at a
mikePOST@[EMAIL PROTECTED  2007-12-08 19:03:57 
Re: Any way to get Software Update to run in the background at a
dempson@[EMAIL PROTECTED]  2007-12-09 13:29:53 
Re: Any way to get Software Update to run in the background at a
Wes Groleau <groleau+n  2007-12-09 03:08:45 
Re: Any way to get Software Update to run in the background at a
lists@[EMAIL PROTECTED]   2007-12-08 18:41:59 
Re: Any way to get Software Update to run in the background at a
Sander Tekelenburg <us  2007-12-08 07:56:27 
Re: Any way to get Software Update to run in the background at a
lists@[EMAIL PROTECTED]   2007-12-08 21:25:35 
Re: Any way to get Software Update to run in the background at a
nospam@[EMAIL PROTECTED]   2007-12-08 00:51:45 
Re: Any way to get Software Update to run in the background at a
Sander Tekelenburg <us  2007-12-08 15:46:01 
Re: Any way to get Software Update to run in the background at a
Jerry Kindall <jerryki  2007-12-08 08:02:47 
Re: Any way to get Software Update to run in the background at a
lists@[EMAIL PROTECTED]   2007-12-09 09:06:13 
Re: Any way to get Software Update to run in the background at a
Jerry Kindall <jerryki  2007-12-10 09:03:37 
Re: Any way to get Software Update to run in the background at a
lists@[EMAIL PROTECTED]   2007-12-11 06:16:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 12:53:56 CDT 2008.