This is my script and it works how i want to exept when it ejects the disk name that i want it to its fine, then i want the script to close but the script will stay open any idea's on how to get the script to close when the disk name is ejected? thanks.
property appname : "TestTaker"
property diskname : "Training_NTE"
tell application "Finder"
mount volume "afp://nwea01:nwea@10.1.0.1/Training_NTE"
--> file
"Training_NTE:"
get end
end tell
tell application "TestTaker"
activate
end tell
repeat
tell application "Finder"
set appIsRunning to appname is in (name of every process)
end tell
if not appIsRunning then
tell application "Finder" to eject diskname
if true then
quit
end if
repeat until appname = false
end repeat
end if
end repeat
property appname : "TestTaker"
property diskname : "Training_NTE"
tell application "Finder"
mount volume "afp://nwea01:nwea@10.1.0.1/Training_NTE"
--> file
"Training_NTE:"
get end
end tell
tell application "TestTaker"
activate
end tell
repeat
tell application "Finder"
set appIsRunning to appname is in (name of every process)
end tell
if not appIsRunning then
tell application "Finder" to eject diskname
if true then
quit
end if
repeat until appname = false
end repeat
end if
end repeat