Re: Looping through a list question...
Re: Looping through a list question...
- Subject: Re: Looping through a list question...
- From: Paul Skinner <email@hidden>
- Date: Mon, 4 Nov 2002 17:45:06 -0500
On Monday, November 4, 2002, at 05:24 PM, Gregory Smith wrote:
Hello Everyone,
Okay, I know this will probably be a dumb one on my part, but why
can't I
loop through a list with only one item with out the looping 'seeing'
the
single var as a list of text items???
snip
Cheers,
Greg
Hiku answer...
scripts worked yesterday
today, they are all broken
silent coercions!
Applescript will try to coerce a single item list to it's contents. You
need to make sure that it gets treated as a list.
set l to {"a ha, thats it!"}
repeat with thisItem in l as list
say thisitem
end
--
Paul Skinner
Perhaps if AS had a shabang statement so at the top you could just...
#! use noisy coercions;
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.