 |
 |
AS: Carbon appl. starts in Classic...
|
 |
|
 |
|
Junior Member
Join Date: May 2001
Status:
Offline
|
|
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
|
|
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
|
|
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)
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: May 2001
Status:
Offline
|
|
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
|
|
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)
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|