applescript will not stop running
Are you sure you have something at the other end of that named pipe actually accepting the data? "do shell script" will not exit until something actually tries to read from the pipe. If you want to work around this, you can use:

do shell script "sh -c \"echo " &amp; currtime &amp; " &gt; " &amp; aname &amp; "\" &amp;&gt; /dev/null &amp;"


This will keep spawning shells which will all wait until you actually use the pipe. Not really a great solution. Ideally you should have something waiting for data before you send anything to a named pipe, or spawn something to consume the data.