yes! but...,

yes! i think that will work, but where do i nest the following command:

<set ThisDate to display dialog “Which date?” default answer “Date”
set ThisDate to text returned of ThisDate as string >

into something like this:

try
activate
tell application “Terminal”
activate
do script "cd /var/local/the_web/scripts/mayo;
do shell script “perl mac2pc.pl” & ThisDate & “/” & ThisDate & ".txt > " & ThisDate & “/” & ThisDate & “pcd.txt”

end tell

on error error_message
beep
display dialog error_message buttons {“Ok”} default button 1
end try



set ThisDate to display dialog "Which date?" default answer "Date"
set ThisDate to text returned of ThisDate as string


try
	activate
	tell application "Terminal"
		activate
		do script "cd /var/local/the_web/scripts/mayo;"
		do script "perl mac2pc.pl" & ThisDate & "/" & ThisDate & ".txt > " & ThisDate & "/" & ThisDate & "pcd.txt"
		
	end tell
on error error_message
	beep
	display dialog error_message buttons {"Ok"} default button 1
end try