On Jan 17, 2006, at 2:16 AM, Jay Louvion wrote:
> I’ve been dabbling seriously for the first time (and think I’ve got
> it at
> last) in subroutines, but I was wondering if there is away of
> shortening a
> variable list passed onto it.
> my MakeiCalEvent(targetCal, EventDate, StartTime, EndTime,
> FullStartDate, FULLEndDate, ToDoNr, ToDoStatus, ToDoAction,
> ToDoActionDetail, Project, Category, ThePriority, Photographer)
How about this?
Set iCalEventList to {targetCal, EventDate, StartTime, EndTime,
FullStartDate, FULLEndDate, ToDoNr, ToDoStatus, ToDoAction,
ToDoActionDetail, Project, Category, ThePriority, Photographer}
my MakeiCalEvent (iCalEventList)
Or possibly making a record out of it and passing the record?
A (The only?) problem with either approach is that you have to
extract the data from the list or record within the sub routine.
-- Michelle
--
The Constitution is no ceiling of liberties. It is a floor of freedoms.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (
Applescript-users@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/subscriber%40opensubscriber.com
This email sent to subscriber@opensubscriber.c
opensubscriber is not affiliated with the authors of this message nor responsible for its content.