Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Send Do Script Apple event fro REALBasic app

Featured Replies

Does anyone know the proper syntax to send the Do Script Apple Event from a REALBasic app? I've gone into the reference for Filemaker and Apple Events, but all the examples are for AppleScript and Frontier. I believe the following is the start:

dim ae as appleevent

ae = newappleEvent("misc", "dosc", "FMP5")

But I can't figure out the syntax for the next statement which is to send the event. I think it's something like...

ae.Send....

But after that...?

Thanks!

Best Regards,

Jeffrey Ellis

You can use Applescript in REALBasic a lot easier than Apple Events. The following Applescript example will run the FileMaker script "MyCoolScript" in the database "MyDatabase."

code:


on run

tell application "FileMaker Pro"

activate

if not (exists (window "MyDatabase")) then

set myFile to choose file with prompt "Select the file 'MyDatabase'

I think we've found someone to moderate a new AppleScript forum! -bd

  • Author

Thanks, Bob!

For the benefit of those interested in this subject, I also wanted to post this reply from Paul Scandariato Intelli Innovations, Inc.:

dim event as appleevent

event = newappleEvent("misc","dosc","FMP5")

event.stringParam("----") = "My Wonderful Script"

if not event.send then

msgBox "Darn!"

end if

However, in order to specify the proper file, you will either need to set up a object specifier, or send FMP a command to open a specific file - if it's already open, then FMP would just

bring it to the front.

Best Regards,

Jeffrey Ellis

  • 2 years later...

I just got into RealBasic to do programming on my

Mac. Can you Guys/Gals suggest a forum

for RealBasic. I've been looking and haven't had

any luck. It would be greatly appreciated

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.