November 9, 200223 yr 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.
November 9, 200223 yr 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
November 11, 200223 yr 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
Create an account or sign in to comment