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

Re: [MacPerl] That Do Script thing



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 ...


>Please also consider implementing "return" for the main "subroutine".

You can, kinda.  use "mode batch", and anything printed will be returned to
the caller (your AppleScript).

-- 
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