applescript will not stop running I have an applescript that utilizes a named pipe and pipes data over to it.
I have my script passing said data in a while loop, which is working, but I find that I am unable to stop the script manually without quitting the Script Editor program.  I do not need to force quit.

Here is the relevant snippet of my script (d is a QT movie reference that is active and playing; aname is a valid POSIX path that specifies the location of the named pipe):

repeat while d is playing
    set currtime to (get current time of d) as string
    get currtime
    do shell script "echo " &amp; currtime &amp; " &gt; " &amp; aname
    delay 0.125
end repeat
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.