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: Wed, 1 Dec 2010 09:39:23 +0100
Anyway, Chris Stevens' advice to change the handler (and it's caller) to all-lowercase solved my problem. Thanks!
Bert.
On 29 nov 2010, at 23:32, Christopher Nebel wrote:
> The problem has to do with changes to case-sensitivity in Snow Leopard AppleScript to support AppleScriptObjC. Change the handler name to all-lowercase (e.g., "getname") or put it in bars (e.g., "|getName|"), change the calling script to match, and it should work.
>
> --Chris Nebel
> AppleScript Engineering
>
> On Nov 23, 2010, at 7:54 AM, Bert Groeneveld wrote:
>
>> 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
>> tell application "TestServer01" of machine "eppc://bert:email@hidden" -- username=bert, passw=673336
>> set myName to getName() -- Bert Groeneveld
>> end tell
>>
>> -- Server 192.168.10.21 has MacOS Server 10.5.8 installed. Script reports an error
>> tell application "TestServer01" of machine "eppc://bert:email@hidden" -- username=bert, passw=673336
>> 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.
>
>
>
_______________________________________________
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