Re: Run App from Mounted Volume
Re: Run App from Mounted Volume
- Subject: Re: Run App from Mounted Volume
- From: Axel Luttgens <email@hidden>
- Date: Fri, 1 Oct 2010 23:48:08 +0200
Le 1 oct. 2010 à 21:52:28, Smith, Mike a écrit :
> 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!
Hello Mike,
By enclosing the problematic statements in a try block without making use of the feedback possibilities, one is missing the important pieces of information about the error cause.
Could you try with that variant:
on error ErrMsg number ErrNum
display dialog "There has been an error." & return & return & ¬
"Please try again. Inform your Teacher."
display dialog "Error: " & ErrMsg & " - " & ErrNum
end try
and see whether the second dialog provides you with some clues about the problem?
HTH,
Axel
_______________________________________________
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