You’ll need to use additional software to do this. Assuming pre-OS X, you might want to take a look at the Dialog Director osax (not for the faint of heart but the download includes a lot of sample code).
– Rob (who sorely misses DD since he has moved to OS X)