Get file name from Text edit in Automator

crosspost: http://www.mac-forums.com/forums/showthread.php?t=118496

http://www.walkersoftware.net/2005/1…-text-to-ipod/

I used this link to create a workflow for “Text to audio”.
Can someone explain me how should I get the name of the Text file in “Save As” automatically?
or is there an alternate way to do it using applescript ?

Hi,

if you’re dealing with plain text, TextEdit is probably not needed.
AppleScript has commands to read / write plain text files

yes it is plain text but i made the plugin so as to avoid the need to open and copy its contents