Run App from Mounted Volume
Run App from Mounted Volume
- Subject: Run App from Mounted Volume
- From: "Smith, Mike" <email@hidden>
- Date: Fri, 1 Oct 2010 12:52:28 -0700
- Acceptlanguage: en-US
- Thread-topic: Run App from Mounted Volume
Title: Run App from Mounted Volume
I can write a script to mount a volume to the desktop. This mounted volume (from my IntelMac OS X 10.5.8 Server) had an application I would like to start and run from the same script, but I cant get it to start up the app.
on run
tell application "Finder"
-- check to see if the volume is already mounted
if exists disk "Users" then
open item "Orchard Gold Star.app" of folder "OrchGS" of folder "OrchardMac2" of folder "Shared"
else
-- since it's not, we mount it.
try
mount volume "afp://abcd:email@hidden/Users"
delay 1
-- now open the application.
open item "Orchard Gold Star.app" of folder "OrchGS" of folder "OrchardMac2" of folder "Shared"
on error
display dialog "There has been an error." & return & return & ¬
"Please try again. Inform your Teacher."
end try
end if
end tell
end run
I know it must be something simple, but I cant find it...any tip will be appreciated! THANKS!
++++
Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden