Re: Run App from Mounted Volume
Re: Run App from Mounted Volume
- Subject: Re: Run App from Mounted Volume
- From: Nathan Greenstein <email@hidden>
- Date: Fri, 1 Oct 2010 16:21:28 -0700
It might be worth a shot to try:
tell application "Disk:Folder:Folder:Folder:App.app" to activate
On Fri, Oct 1, 2010 at 12:52, Smith, Mike
<email@hidden> wrote:
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
_______________________________________________
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