Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Stop Classic with AppleScript?

Stop Classic with AppleScript?
Thread Tools
bojangles
Senior User
Join Date: May 2000
Location: Lafayette, IN, USA
Status: Offline
Reply With Quote
Jan 3, 2004, 03:16 PM
 
I�ve written a very simple AppleScript so my wife can open a disk image and a classic application that requires that disk image. Unfortunately, unless the disk is mounted before Classic starts, the application can�t see it. In short, I need the script to check if Classic is running, and if so, to stop it.

Any suggestions?
“The trouble with quotes on the Internet is that you can never tell if they’re attributed to the right person.”
—Abraham Lincoln
     
Rickster
Mac Elite
Join Date: Feb 2001
Location: Vancouver, WA
Status: Offline
Reply With Quote
Jan 4, 2004, 12:31 AM
 
The process that runs the Classic environment is called "TruBlueEnvironment". You may be able to look for that via the Processes Suite of the System Events app, and then quit it using normal "tell" commands. If not, you can certainly look for it and kill it using unix shell commands, called from your AppleScript using the "do shell script" command from Standard Additions.
Rick Roe
icons.cx | weblog
     
bojangles  (op)
Senior User
Join Date: May 2000
Location: Lafayette, IN, USA
Status: Offline
Reply With Quote
Jan 5, 2004, 07:49 AM
 
Welp, I found the answer on Apple�s own discussion boards. It�s just a shell script.

Thanks again!
“The trouble with quotes on the Internet is that you can never tell if they’re attributed to the right person.”
—Abraham Lincoln
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 10:41 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,