Re: Network awareness, ping, HTTP test, Simon, Automator (10.4)

2008-03-06 Thread Derek Y-E

Hi Geoff and WAMUG folks.

For a flag or similar, just do a ping...

Let's say your machines are visible via TCP/IP internally...

Ping machine 1, to see if machine 2 is available. e.g. ping 192.168.1.12
Or, enable web-sharing on one of the machines, and use the other to  
test if a particular (simple) page you are hosting, is alive or not.


If you were using 10.4 on one of the machines, you could try  
combining your AppleScript ideas, with using Automator... E.g.  
perhaps making an automator workflow that checks if the machine is  
alive, and if so, don't shutdown the local machine. The user of  
this machine could run this whenever they want to shutdown, rather  
than using the Apple menu - Shutdown option :-)


There is also the application 'Simon' which is great for checking if  
a machine / service / website etc. is alive. You can set it to run  
scripts.


There is also various 'shutdown' applications on Versiontracker,  
including one that mentions Applescripting... I wanna  
sleep (although this app looks more like a general timer)

http://www.versiontracker.com/dyn/moreinfo/macosx/17803

Hope this helps as a starting point...

Cheers,
Derek

On 07/03/2008, at 5:02 AM, WAMUG Mailing List wrote:


Date: Thu, 6 Mar 2008 12:08:50 +0800
From: Kaye and Geoff [EMAIL PROTECTED]
Subject: Network awareness

When 10.3 mounts the 10.2 disks,
and 10.2 user unthinkingly shuts down without checking first, there
is no dialogue box or other indication that another machine is
attached; 10.2 just shuts down. Not surprisingly this annoys 10.3
user.

Does anyone know of any solution to this problem, either something
straightforward, or any flag which can be inspected by Applescript?

Thanks
Geoff



-- The WA Macintosh User Group Mailing List --
Archives - http://www.wamug.org.au/mailinglist/archives.shtml
Guidelines - http://www.wamug.org.au/mailinglist/guidelines.shtml
Unsubscribe - mailto:[EMAIL PROTECTED]


Network awareness

2008-03-05 Thread Kaye and Geoff
We run a simple network of two eMacs, one running 10.2 (hereafter 
called 10.2) and the other running 10.3 (10.3). Most of our 
critical working files are on 10.2. When 10.3 mounts the 10.2 disks, 
and 10.2 user unthinkingly shuts down without checking first, there 
is no dialogue box or other indication that another machine is 
attached; 10.2 just shuts down. Not surprisingly this annoys 10.3 
user.


We recollect that in the old days, pre OSX, that on shutdown the OS 
checked for anyone attached and displayed a dialogue box if there 
was, and we think that OS 10.3 also does this (we will check later). 
We considered writing a script (Applescript) to solve the problem, 
but can find no place in 10.2 which can be inspected to indicate 
whether someone else is attached. We imagine that there could be a 
daemon which starts up when a network connection is made, which we 
could see in the process viewer, but maybe not? We thought up a few 
very complex solutions, but something simple would be nice.


Does anyone know of any solution to this problem, either something 
straightforward, or any flag which can be inspected by Applescript?


Thanks

Geoff
--
Kaye Stott and Geoff Prince
email: [EMAIL PROTECTED]
web: http://www.kgweb.org.au

-- The WA Macintosh User Group Mailing List --
Archives - http://www.wamug.org.au/mailinglist/archives.shtml
Guidelines - http://www.wamug.org.au/mailinglist/guidelines.shtml
Unsubscribe - mailto:[EMAIL PROTECTED]