Re: Why these errors?
Re: Why these errors?
- Subject: Re: Why these errors?
- From: 2551 <email@hidden>
- Date: Tue, 11 Feb 2014 19:01:51 +0700
Jon Pugh wrote: Sorry, I was heading out the door to work, so I didn’t have time to write a more fully featured assertion and demonstration. However, I thank Alex and Hengist for putting forth examples and explanation in my stead.
Thank you Axel and Jon for your attempts to explain; Matt makes similiar examples in his book, which I have read avidly and continue to use as a source of reference.
I think I understand why you find this objectionable:
AppleScript isn't a true 'object-orientated' programming language, not least because its nature - to be an inter-application metalanguage rather than an application development language - doesn't lend itself to inheritance of class behaviour.
It’s because what you two are talking about is writing scripts in pure AppleScript; but what the OP was wondering - and I was trying to explain, clumsily - was why Finder can’t look up the hierarchy tree for an unknown handler. Just as you say, Jon:
AppleScript exists in and around the applications, but each application is its own little world
But both AppleScript and the terms of scriptable apps are written in the same language. And that’s why people (not me, actually, Jon) get confused about
the semi-permeable barrier between AppleScript itself and the terminology of applications
What I should have said is that when you’re writing scripts targeting applications, AppleScript doesn’t (i.e, can’t) behave like a true OOP language and trade ivars and functions (methods/handlers) because there’s no direct chain of inheritance from parent script to application tell block. That’s closer to what I was trying to say, and I hope closer to being less technically objectionable.
Now, I need to go and digest Hengist and Shane’s posts. The verbose versus the cryptic…the fun never ends on here! |
_______________________________________________
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