Re: [NTLK] Dashboard Macintalk Script

From: James Clark (clarkjm_at_appleisp.net)
Date: Wed Feb 13 2002 - 19:14:47 EST


One of the major problems can be caused by typing "for each" instead of
"foreach". Here is my script which works, but could use some cleaning up.

local t := GetHilitedTextItems();
local vox :="[[svox zary]]";
If not(t=nil) then

begin
foreach item in t do
PlaySound(vox&item);
end;

else

begin
PlaySound("You must select something first.");
end;

DrJim

-- 
This is the Newtontalk mailinglist - http://www.newtontalk.net
To unsubscribe or manage: visit the above link or
	mailto:newtontalk-request_at_newtontalk.net?Subject=unsubscribe



This archive was generated by hypermail 2.1.2 : Sat Mar 02 2002 - 10:02:56 EST