• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
automatic unmount
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: automatic unmount
      • From: Malcolm Fitzgerald <email@hidden>
  • Prev by Date: Re: Switch to White on Black (was Script Editor Styles Format Change Script)
  • Next by Date: Count lines in a textfile
  • Previous by thread: Standard folder names, etc. (was: Applescript-users Digest, Vol 1, Issue 41)
  • Next by thread: Re: automatic unmount
  • Index(es):
    • Date
    • Thread