[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] That Do Script thing



At 16:50 -0500 2000.09.07, Jeff Lowrey wrote:
>At 4:36 PM -0400 9/7/00, Chris Nandor wrote:
>>At 12:59 -0700 2000.09.07, Mikael Hansen wrote:
>>>That unfortunately is a somewhat cumbersome approach when you have a
>>>different number of arguments from time to time and if you have many
>>>arguments. It would be so nice if one passed argument of type list
>>>would go straight into @ARGV.
>>
>>Interesting.  I'd have thought it should work.  Is there any way to coerce
>>an AppleScript list into a list of discrete items?  I can do "item 1 of
>>myList, item 2 of myList" to get a list of those two items, but not "items
>>of myList"; the latter appears to return an AppleScript list.  Please tell
>>me that AppleScript has a way to do this ...
>
>How do you mean "coerce an AppleScript list into a list of discrete items"?
>
>'items of myList' should just return myList, which is a list to start
>with.  So it's essentially a noop.

It doesn't appear to.  It appears to return a list of those items.  That
is, it is sorta like "items of myList" is returning $arrayref instead of
@{$arrayref}.  That's what it seems like, anyway.

-- 
Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org