Re: "a reference to"
Re: "a reference to"
- Subject: Re: "a reference to"
- From: has <email@hidden>
- Date: Mon, 7 Jan 2008 14:50:36 +0000
On 7 Jan 2008, at 02:57, Doug McNutt wrote:
This script fails:
set M_List_Group to people of group "Mailing Lists"
This works:
set M_List_Group to a reference to people of group "Mailing Lists"
The real answer is *.
End of answer.
The * operator is a pointer in a well known language most of us are
a bit familiar with.
The difficulty is that Applescript, in its infinite wisdom,
considers pointers to be something that must be hidden from users.
Well, at a minimum, a different syntax will have to be invented
just to confuse everyone who knows the slightest bit about passing
an address of a data block to a subroutine..
Completely and utterly wrong - this has nothing whatsoever to do with
pointers. It has everything to do with the way that AppleScript
evaluates literal "references", and the various tricks it uses in its
attempt to hide the differences between Apple event IPC, which is RPC
+query based, and the AppleScript language itself, which is object-
oriented.
The problem is that AppleScript's trickery only runs skin deep. It's
enough to fool casual users into thinking that interacting with remote
application objects is the same as interacting with native language
objects, but you don't have to scratch too deep before the illusion
starts to fall apart. I'm loathe to spend hours writing a full
dissertation on the subject, but I'll try to find time for a brief
walkthrough of Michelle's code later on.
One thing does puzzle me though: instead of complaining about
AppleScript not being C (something it was _never_ intended to be), why
don't you just go use C or a C-like language instead?
has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
_______________________________________________
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