Re: How to adjust this script to work on Snow Leopard?
Re: How to adjust this script to work on Snow Leopard?
- Subject: Re: How to adjust this script to work on Snow Leopard?
- From: Bert Groeneveld <email@hidden>
- Date: Tue, 23 Nov 2010 16:54:12 +0100
The problem is inside the tell statement. It seems (early conclusion) that the system software of the server may not be lower than the system software of the machine the script is ran from. Unfortunately this is not the case at the moment in my situation. Anyone any suggestions (apart from upgrading server 192.168.10.21 to Snow Leopard)?
See details below:
(* I run this script from my MBP which has Snow Leopard installed. *)
-- Server 192.168.10.64 has MacOS Server 10.6.4 installed. Script runs fine set myName to getName() -- Bert Groeneveld end tell
-- Server 192.168.10.21 has MacOS Server 10.5.8 installed. Script reports an error set myName to getName() --Error: TestServer01 got an error: Can’t continue getName. end tell
(* Script "TestServer01" is a stay open script (always running) and contains ONLY this code:
on getName() set myString to "Bert Groeneveld" return myString end getName
*)
As a test, I also ran this script from a Mac running 10.5.8, which worked fine on both servers.
Bert. This (part of a) script only runs on 10.5.8 and not on 10.6. Could anyone tell how to adjust this snippet to make it compatible with 10.6?
So the problem is not really in the script, but in making the script run over the network. When you say does not run on 10.6, what does it do? Silently fail? Time out? Display an error message? It's a stay open script, is it open at the time the command is sent? Activating an application remotely can be problematic. I've had mixed success with telling Finder to open the app. Can you make sure the target machine is set to receive remote apple events in the Sharing panel of System Preferences. I know it was working before but double check, just to be sure. HTH, ES
|
_______________________________________________
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