<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE></TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hi Swift Users:<BR>
<BR>
I'm trying to collect all of the files with the extension ".jpg", rotate them 180 degrees, and produce output of "hoot.xxx.jpeg".<BR>
<BR>
here is my swift file and my error message. I've tried lots of things with files and foreach, but I can't make any sense out of this.<BR>
<BR>
Any suggestions, please?<BR>
<BR>
<BR>
<BR>
[erin@tp-login2 swift1]$ cat rot2.swift<BR>
type file;<BR>
<BR>
app (file o) rotate(file s, int angle) {<BR>
convert "-rotate" angle @filename(s) @filename(o);<BR>
}<BR>
<BR>
file frame[] <filesys_mapper; pattern="*.jpg">;<BR>
file output[] <simple_mapper;suffix=".jpeg",prefix="hoot.">;<BR>
<BR>
foreach ix in frame {<BR>
output[ix] = rotate(frame, 180);<BR>
} [erin@tp-login2 swift1]$<BR>
[erin@tp-login2 swift1]$ swift -tc.file tc.data rot2.swift<BR>
Could not start execution.<BR>
Compile error in foreach statement at line 10: Compile error in procedure invocation at line 11: Wrong type for parameter number 0, expected file, got file[]<BR>
<BR>
<BR>
Thanks,<BR>
Erin<BR>
<BR>
Erin M. Hodgess, PhD<BR>
Associate Professor<BR>
Department of Computer and Mathematical Sciences<BR>
University of Houston - Downtown<BR>
mailto: hodgesse@uhd.edu<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>