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

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

HTH,
--
Nathan Greenstein
email@hidden



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.

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

 _______________________________________________
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

References: 
 >Run App from Mounted Volume (From: "Smith, Mike" <email@hidden>)

  • Prev by Date: Re: Run App from Mounted Volume
  • Next by Date: Re: Smile and mid 2010 iMacs and Pros with Core i3-5 processors
  • Previous by thread: Re: Run App from Mounted Volume
  • Next by thread: File name of background picture
  • Index(es):
    • Date
    • Thread