So I'm coming up to speed on building Apple Events from the various 
perl ways, and I'm starting with macperlcat.

I have a question about the documentations.  The example shows:

       params =>["'----':obj {want:type(cobj), " .
         "from:null(), form:enum(name), seld:TEXT(\@)}",
         $vol]

Then under the description of "form" it says:

   "  However, we could also give it [form] an index (indx) and seld 
would be 1 and of type shor (short integer), representing the first 
element available, which in the Finder is the startup disk. "


But later the tutorial presents:

As noted, we could change the object to use an index of 1, which 
would do the same thing:

       params =>["'----':obj{want:type(cobj), " .
         "from:null(), form:enum(name), seld:shor(1)}"]


Is this last example correct?  From what I am led to believe the 
"form:enum(name)" should instead be  "form:indx"

When I try the example as printed I get an error.  However, when I 
use the 1 example I get the trash I believe.  I get:

   aevt\ansr{'----':obj {want:type(prop), from:'null'(), form:prop, 
seld:type(trsh)}}

   I am actually getting the index of some item on the desktop, and it 
isn't a disk.  Subesquent numbers are files and folders.

   Has anyone else seen this?

-Andrew

-- 

Reply via email to