automatic unmount
automatic unmount
- Subject: automatic unmount
- From: Stefan Eriksson <email@hidden>
- Date: Fri, 17 Sep 2004 00:58:43 +0200
Trying to create an application that automatic mounts a servervolume if a certain application is started and the opposite aswell, if the application is quit, then the servervolume will be unmounted... this is so far i´ve got on the unmountpart:
set is_running to 0
repeat
tell application "Finder" to exists process "TextEdit"
set result to is_running
is_running is "false" then
tell application "Finder"
eject disk "kain" -- Mounted name of fileserver
end tell
end if
delay 10
end repeat
Works just fine, aslong as TextEdit is running, variable
is_running is true, if TextEdit is quit,
is_running turns to false, but servervolume stays, any ideas about this ?
Best regards, Stefan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden