Index: /issm/trunk-jpl/scripts/ol.m
===================================================================
--- /issm/trunk-jpl/scripts/ol.m	(revision 22894)
+++ /issm/trunk-jpl/scripts/ol.m	(revision 22895)
@@ -1,3 +1,4 @@
 
+%Open runme.m file and read line by line
 fid=fopen('runme.m','r');
 
@@ -6,9 +7,9 @@
 while ischar(tline)
 	tline = fgets(fid);
-	if length(tline)>15,
-		if strcmpi(tline(1:15),'if perform(org,'),
-			disp(sprintf('%i: %s',count,tline(17:end-4)));
-			count=count+1;
-		end
+	if strncmpi(tline,'if perform(org,',14),
+		lastchar = strfind(tline,')');
+		lastchar = lastchar(end)-1;
+		disp(sprintf('%2i: %s',count,tline(16:lastchar)));
+		count=count+1;
 	end
 end
