Shell Script Progress
Shell Script Progress
- Subject: Shell Script Progress
- From: "Kinsella, John R." <email@hidden>
- Date: Wed, 22 Jan 2003 08:10:43 -0600
While fairly proficient with applescripts themselves, I'm new to running
shell scripts from them. So I have a question for the guru's of the list.
Is there a way to get the progress or state of a shell script during its
execution?
For instance, I'm writing a small little app to automatically erase a CD.
There's a command line script that can do this and it works great. But I'd
like to make this look nice for the end user. So, when I run the command
and it spits out the CD Drive, I'd like to display a dialog that asks the
user to insert a CD. Then I think I'd want to run a repeat command to check
until the cd is inserted. Once that's done, I'd like to display a dialog
that says the erasing is occurring. And finally (this part I can do,
because I can get the result of the CLI, I just can't get the intermediary
info) when the erasing ends, display a dialog that it either succeeded or
failed.
Finally, I'm running this through system events rather than the Terminal so
that it's all transparent to the user. So, I can't get the current text
from the terminal window, which makes this a bit more difficult.
Any help would be greatly appreciated!
Thanks!
John Kinsella
IRT-CS
University of St. Thomas
-------------
"The surest way to corrupt a youth is to teach him to hold in higher regard
those who think alike rather than those who think differently."
--Nietzsche
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.