• 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
Run App from Mounted Volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

o
n 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

  • Follow-Ups:
    • Re: Run App from Mounted Volume
      • From: Nathan Greenstein <email@hidden>
    • Re: Run App from Mounted Volume
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Smile and mid 2010 iMacs and Pros with Core i3-5 processors
  • Next by Date: Re: Run App from Mounted Volume
  • Previous by thread: Re: Smile and mid 2010 iMacs and Pros with Core i3-5 processors
  • Next by thread: Re: Run App from Mounted Volume
  • Index(es):
    • Date
    • Thread