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 > AS: Carbon appl. starts in Classic...

AS: Carbon appl. starts in Classic...
Thread Tools
AJM
Junior Member
Join Date: May 2001
Status: Offline
Reply With Quote
May 19, 2002, 08:30 PM
 
Hi all,
I am trying to launch all my applications from the AppleScript menu. I just use a simple:
tell application "Blah"
activate
end tell
Unfortunately a few Carbon applications want to start in Classic, and so launch it too (IE, AppleWorks, etc.) Is there a way to force an application to start in OS X and not Classic?
Also, is there a way to launch Classic with AS?
Thanks,
AJM
     
Junior Member
Join Date: Jul 2001
Location: Mos Eisley Cantina
Status: Offline
Reply With Quote
May 20, 2002, 01:46 AM
 
I don't know off-hand what is causing your Carbon apps to launch in Classic, as I know little about AppleScript. I suspect LaunchServices is being passed some improper flags or something, but don't know how to correct your problem.

Launching Classic within AppleScript should be simple, as it is started with the TruBlueEnvironment application which is located in /System/Library/CoreServices/Classic Startup.app/Contents/Resources/. Just launching this application should work, since you can start Classic by navigating to this directory and opening TruBlueEnvironment from the Finder (or opening it as an NSTask or whatever).
     
Mac Elite
Join Date: Sep 2000
Status: Offline
Reply With Quote
May 20, 2002, 02:28 AM
 
Have you checked the Show Info window in the Finder for those apps to make sure the "Open in the Classic Environment" box isn't selected?
The server made a boo boo. (403)
     
AJM  (op)
Junior Member
Join Date: May 2001
Status: Offline
Reply With Quote
May 20, 2002, 10:58 AM
 
Originally posted by starfleetX:
<STRONG>Have you checked the Show Info window in the Finder for those apps to make sure the "Open in the Classic Environment" box isn't selected?</STRONG>
Actually I have to correct myself. I have 2 Internet Explorer installed, one for OS 9, one for OS X. I think Appleworks 6 works the same way, there are actually two copies in the application package. So how do I tell AS which one to pick? Can I specify the whole path?
Thanks again,
AJM
P.S. And I checked the "Open in Classic" and was not selected.
     
Mac Elite
Join Date: Sep 2000
Status: Offline
Reply With Quote
May 20, 2002, 02:35 PM
 
Originally posted by AJM:
<STRONG>I have 2 Internet Explorer installed, one for OS 9, one for OS X. I think Appleworks 6 works the same way</STRONG>
A-ha! That's definitely the problem, as AppleScript is known to often launch the classic version if there are two copies.

I don't know much about AppleScript, but something with a hard path should work. Maybe this?

<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>do shell script <font color = red>"open /Applications/Internet\\ Explorer.app"</font></font>[/code]

That worked for me.
The server made a boo boo. (403)
     
   
Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:02 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2