i am trying to use variables defined in perl in an apple script in the perl code some thing like this data received from html post $name=answer &MacPerlDoAppleScript(<<convert) tell application"clip2gif" activate open{file,filename blah: blah: blah:Picture&$number($number as string)}with batch conversion end tell convert print",img src=\"/blah/blah/Picture\"$number\".gif<p>/n"; but it wont use the variable defined in perl How do i get around this? Eric M. Mosher Champaign Illinois