printit Posted November 9, 2002 Share Posted November 9, 2002 I'm looking for a way to open a Real Basic application on a mac If I use AppleScript tell application "OpenOS X" activate end tell I get an error " Can't get the application's event dictionary" If I use send apple event I get an error "<unknown>" could not be found and is required to complete this operation. I think the problem is in the Real Basic App because I was able to make both apple script and apple event to work with other app's Any thoughts. Ron Bascom PS I the one that worte the Real Basic app in question. Link to comment Share on other sites More sharing options...
BobWeaver Posted November 9, 2002 Share Posted November 9, 2002 Did you give your RealBasic application a unique Creator code? It likely requires this in order for Apple Events to locate the application. You need to have a section in your RealBasic application to handle the received apple events. Create a new sub-class that has Application as its Super property value. Then in the Events handlers section of this subclass, edit the Activate handler, and add code to do what ever must happen when the application is activated. Example: Sub Activate() MyMainWindow.show end sub Link to comment Share on other sites More sharing options...
jfmcel Posted November 11, 2002 Share Posted November 11, 2002 You should be able to open the application just using the Finder and the path to the application... Tell app "Finder" to open file theAppPath Link to comment Share on other sites More sharing options...
printit Posted November 17, 2002 Author Share Posted November 17, 2002 Thanks guy's I think I'm going to use launch It Ron Bascom Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 7924 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now