Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8041 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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


This topic is 8041 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.