Re: Loading an AS dict that defines 'point' also causes 'points' to be defined??
Re: Loading an AS dict that defines 'point' also causes 'points' to be defined??
- Subject: Re: Loading an AS dict that defines 'point' also causes 'points' to be defined??
- From: Philip Aker <email@hidden>
- Date: Wed, 5 Aug 2009 12:52:24 -0700
On 2009-08-05, at 09:31:35, David Springer wrote:
I recently switched to using an .sdef in my Cocoa app for defining
AS event handlers. The problem is that suddenly it looks like my
app defines the property 'points' and this breaks other apps which
send AS events to mine.
In my .sdef, I do not define a 'point' or 'points' property, nor do
I do this in code. When I use Script Editor, it shows that 'point'
is a keyword but 'points' is not, unless my app is running.
Any clues as to what is going on here? Is there a way I can
"undefine" 'points' in my .sdef, or in code? Is there a way to
debug this, either via Cocoa APIs or some tool that shows me what
properties are being set by which script/script addition?
For Cocoa scripting with sdefs, 'point' is a built-in hidden keyword
and its plural is 'points'. It has the same status as 'integer',
'date', or 'real'. You're simply going to have to chance your app in
order to be in accordance with TN2106 (i.e don't overload built-in
keywords). Seems to me that since you didn't research the term 'point'
before using it, chances are quite high that you also didn't use it's
code ('QDpt'). You might try changing the code of the property, or
introducing a synonym. This could be the path of least disruption but
I'm not sure it will work because of the plurality of 'points' used as
your property keyword.
You may have to actually change the term to something like "surface
points" (or whatever) and ask users to recompile their scripts.
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
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