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: Paul Berkowitz <email@hidden>
- Date: Wed, 01 Dec 2010 09:45:22 -0800
- Thread-topic: How to adjust this script to work on Snow Leopard?
On 11/30/10 11:30 PM, "Jon Pugh" <email@hidden> wrote:
> It's only when talking between OS/AppleScript versions.
>
> In the past, AppleScript internally lowercased all handler names in messages,
> to allow case insensitivity. Thus, it didn't matter if GetName called
> getName. They would both use getname.
>
> However, it sounds like AppleScriptObjC needed to preserve the caller's case
> so that it could match that to the ObjC method names. Thus, now the caller
> and callee must match, or if you can't change the caller (such that it is
> calling with an old lowercase message), or if the callee is running an older
> AppleScript (such that it expects lowercase messages), then you need to play
> some games to ensure that the messages are properly handled.
>
> Basically, if everything is running on the same OS/AppleScript, then you're
> fine. If you're talking between 10.5 and 10.6 (or other permutations) then
> you may need to be careful and more explicit about your handler names.
This makes sense. Thanks for the insight, Jon.
So this would only ever come up when two scripts (in separate script files)
are involved, and only if the called script were an older script saved in OS
10.5 or earlier, and the calling script is a newer script saved in OS 10.6?
(Or vice versa, I guess.) Or have I misunderstood you?
Or would the operating system the scripts are being run on play a part?
I.e., what if both scripts were saved in OS 10.5 and downloaded by someone
running OS 10.6? If that also creates a problem, what about just a single
script with a handler, saved in OS 10.5 and downloaded by someone running
10.6? If that's a problem, then it's a big problem.
--
Paul Berkowitz
_______________________________________________
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