Re: Better Open Dictionary
Re: Better Open Dictionary
- Subject: Re: Better Open Dictionary
- From: John Delacour <email@hidden>
- Date: Thu, 6 Mar 2003 11:18:27 +0000
- Mac-eudora-version: 6.0a9
At 2:41 am +0000 6/3/03, has wrote:
However this is the first application I've ever seen that can do
selection but not do 'selection as string', [...]
Hmmm. The dictionary lists 'selection' as an object (which I don't
have a problem with)
Good, because it comes from the standard suite and has always been an object.
What you actually want is:
tell application "Script Editor"
contents of selection
No, what I actually want is selection as string, which is possible in
any properly written application and always has been. Because that's
what people want 90% of the time
I'm not sure what best practice on evaluating 'selection' is, but
the inability to get its class certainly looks like a bug to me.
If so, then there's a different bug in every app I've tried, so you'd
have a job getting anyone to agree. Try it in STE, BBEdit, TE+ and
whatever you have.
Comprehensive error messages in response to the user's mistakes
should be seen as an _essential product feature_, every bit as
important as implementing scriptability in the first place;
potentially marketable too.
We've always had specific error messages in Classic apps. It's just
that Apple haven't been bothered yet to write them, which seems to me
very bad programming practice. Cf. perl.
JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.