Re: "script does not understand the [handler] message" appears randomly
Re: "script does not understand the [handler] message" appears randomly
- Subject: Re: "script does not understand the [handler] message" appears randomly
- From: Axel Luttgens <email@hidden>
- Date: Fri, 24 May 2013 10:02:26 +0200
Le 23 mai 2013 à 21:31, Alex Hall a écrit :
> [...]
>
> I am using properties. Here's a copy-and-paste from one of the scripts (and yes, it uses absolute paths for now - I'll change that once I have these working consistently).
> property utilities : load script POSIX file "/Users/mehgcap/prog/apple scripts/utilities.scpt"
> property getResourceInfo : load script POSIX file "/Users/mehgcap/prog/apple scripts/getResourceInfo.scpt"
Hello Alex,
Could you try by replacing above to lines by:
set utilities to load script POSIX file "/Users/mehgcap/prog/apple scripts/utilities.scpt"
set getResourceInfo to load script POSIX file "/Users/mehgcap/prog/apple
This would of course replace properties by global variables, but this shouldn't have any side-effects in this case.
The benefit would be to have two run-time statements instead of compile-time initializations, and thus probably explicit error messages in case of problems with the script loading.
Axel
_______________________________________________
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