Skip 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.

script step to run another FM7 runtime application

Featured Replies

I'm not having any luck satisfying Dev 7 (MAC OSX).

I would like to run another FM7 runtime solution in the background by starting it from a script step in an 'active' runtime solution.

I've tried various forms of 'send event' and am about to conclude that's not the way to do it.

How do I get the other runtime solution to run from a script step?

TIA

I just tried this using Dev7v3 on MacOS X 10.4.2.

I made a runtime, then I made another runtime that opens it in the background via a script.

I just used the send event script step like you mentioned. I specified the "open application event" and then specified the previously bound runtime application. Then I bound the new runtime, launched it, and ran the script. The other runtime launched and remained in the background. You can specify whether to leave it in the background or bring it to the foreground.

  • Author

I'm on OSX 10.3.9; FMdev7.0v3. When I do 'send event', select 'open application', and 'open' the deired runtime application it seems to be happy. After doing this, the script step looks like:

send event["unknown";"aevt";"oapp";""]

Then when I execute the step, I get the message:

'The file "" could not be found and is required to complete this operation'. It seems to ignore the chosen application.

I'm also having trouble on Windows XP (I need the application to work on both platforms). The 'send event' step works fine when executed from FM7. But after creating the runtime application, the 'send event' seems to be ignored. Nothing happens - the other runtime does not start. I've done an error capture around the step, but no error is detected during the 'send event'.

I'm frustrated!!

Mine says:

send event ["WhateverApplicationIChose";"aevt";"oapp";""]

If you choose another application, does it still say "unknown"?

It seems like the application is not being selected properly, but I've tried it on two different Macs now, and I've opened many scripts and applications with send event on windows... I'm not sure what's going on with your setup.

  • Author

if I choose one of the 'standard' applications in the application folder, it works properly. Just seems to ignore the FM runtime solution even though it accepts it as a valid choice when 'specifying' the application.

Is there something 'different' about the way FM marks a runtime solution as an 'application' that might cause it to be ignored (the Finder and get info clearly identify the runtime I'm trying to select as an 'application')?

I've tried this on a new database and on 2 different MACs (both on 10.3) with the same results.

I tried it with a couple of runtimes and it worked OK. Maybe you could try "open document" and then have it open the primary file used by the runtime. That should cause the runtime to launch, assuming you gave the files a unique extension.

Does the runtime launch when you double click it normally?

Can you use an Applescript to launch it? Or a shell command?

For instance, typing this command in the Terminal will open Address Book:

open Address Book.app

You could just have send event launch the application using applescript directly, or using this terminal command wrapped within the "do shell script" applescript command.

  • Author

Bingo!

The key to the problem:B)

"...assuming you gave the files a unique extension."

Thank you! I was binding both solutions with the same extension. Now with a unique extension for each solution, the world is wonderful!! I can't wait to see if that solves my XP problem as well (I'm sure it will, but that will have to wait until tomorrow).

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.