I am trying to write a script to accpmplish teh follwing things
- open a share to a windows server with specified user account.
- open a nonscripted application
- Close the network share when the application exits
So far I can open and close the share but I can not figure out how to tell when the application has ended so that the script can close the network share.
here is what I have so Far
tell application "Finder"
if exists (disk "apps") then
tell application "MavisNet16" to launch --MavisNet16 is network typing tutorial
else
mount volume "smb://stuac::hansol@chs-library/apps"
tell application "MavisNet16" to launch --MavisNet16 is network typing tutorial
end if
--When application exits then close network share
if exists (disk "apps") then
eject "apps"
end if
end tell
I do not know how to tell if the application has ended so that the script can close the connection. As the script works now the share will open, the program will launch and before the users have a chance to login the network connection closes and the users can not login because the share is closed.
chad