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.

Error on using RunShellScript only with ScriptMaster

Featured Replies

Hello!

I have a weird issue going on that is driving me nuts.

I want to use the RunShellScript command to open an application. When I use the command in the terminal or even call it via an Applescript (via the editor) it works just fine, the app launches and NO error code for loading the SM plugin shows.

HOWEVER, using the exact same code and running the RunShellScript function, the filemaker runtime will open fine, but I get an error that I need to have Java 1.5 or higher installed. And of course, once the runtime finishes loading, I get the SM error that the plugin may not have been installed properly. If I close the file and open it manually by clicking on it, it opens with no errors. If I use the script from within FileMaker, I get the Java and SM errors.

Any thoughts?

Thanks,

Stephen

PS - I have the current Java 1.7 and 1.6 installed, Mac OSX Lion 10.7.3, FMAdvanced 11, SM Plugin 4.132

  • Author

Just as a follow-up...

No matter how I open the runtime solution via FM, I always get an error on the SM plugin. Other plugins load fine, but just this one has an error when I attempt to open a file (i.e Applescript, shell scrip, Open URL, etc.) Everything will open fine, outside of FM, as soon as I script it and run it, I get the error with ScriptMaster.

Any thoughts?

Thanks,

Stephen

  • 2 weeks later...

I have exactly the same problem with two FM robots, one on 10.6.8 (Intel) and one on 10.5.8 (PPC).

An Apple Script is launched on close of the file, pauses for 120 sec, opens the robot.fp7 file again.

I already spend some time with 360Works support on this, they were really helpful but couldn't replicate the issue.

So we gave up.

I tried other ways opening the fp7 file via a script but I always receive this strange error.

Is the file opened by double-click, the problem never occurred.

Must be some AppleScript / Java conspiration ;)

Alexander

  • 2 weeks later...
  • Author

I have exactly the same problem with two FM robots, one on 10.6.8 (Intel) and one on 10.5.8 (PPC).

An Apple Script is launched on close of the file, pauses for 120 sec, opens the robot.fp7 file again.

I already spend some time with 360Works support on this, they were really helpful but couldn't replicate the issue.

So we gave up.

I tried other ways opening the fp7 file via a script but I always receive this strange error.

Is the file opened by double-click, the problem never occurred.

Must be some AppleScript / Java conspiration ;)

Alexander

Alexander,

Yeah, the only way for me to open up the file is to do an applescript that simulates the keyboard commands of cmd+o to open it. It's not elegant, and it doesn't always work as expected but it was the best solution for me to get around this error. I've tried different installations of Java and the SM plugin, but no go. Hopefully, we can figure out what's happening.

Stephen

  • 4 months later...
  • Author

I have exactly the same problem with two FM robots, one on 10.6.8 (Intel) and one on 10.5.8 (PPC).

An Apple Script is launched on close of the file, pauses for 120 sec, opens the robot.fp7 file again.

I already spend some time with 360Works support on this, they were really helpful but couldn't replicate the issue.

So we gave up.

I tried other ways opening the fp7 file via a script but I always receive this strange error.

Is the file opened by double-click, the problem never occurred.

Must be some AppleScript / Java conspiration ;)

Alexander

 

Hey,

 

Any updates to your issue? I still need to do the applescript and open via keyboard commands to avoid this launching error with the ScriptMaster plugin.

 

Stephen

  • 4 weeks later...

Hi Stephen,

 

indeed, just a few days ago:

 

display dialog "Restarting FileMaker Robot" giving up after 120

tell application "Terminal"

    do shell script "open '/Users/userfolder/Documents/myRobot.fmp12' -a '/Applications/FileMaker Pro 12/FileMaker Pro.app'; exit"

end tell

 

Now the trouble is gone.

Haven't tested it with prior versions of FileMaker 12 but I had the same issue on those computers after upgrading to 12.

 

Best,

Alexander

  • Author

Hi Stephen,

 

indeed, just a few days ago:

 

display dialog "Restarting FileMaker Robot" giving up after 120

tell application "Terminal"

    do shell script "open '/Users/userfolder/Documents/myRobot.fmp12' -a '/Applications/FileMaker Pro 12/FileMaker Pro.app'; exit"

end tell

 

Now the trouble is gone.

Haven't tested it with prior versions of FileMaker 12 but I had the same issue on those computers after upgrading to 12.

 

Best,

Alexander

 

Great! I will write this into my application and see how it goes. I'll let you know. Thanks!

  • Author

Alexander,

 

I tried the solution you mention but unfortunately I continue to receive the Java startup error. :( Unsure what could be causing this. The only option I have been able to get to work is the AppleScript key press workaround. That has been the only way.

 

Thanks,

 

Stephen

Stephen, 

 

too bad. Do you use the latest version of ScriptMaster?

This startup behavior is very erratic, the guys at 360works couldn't even reproduce the error then.

I think the AppleScript key press isn't a bad way.

 

Cheers,

Alexander

  • Author

Stephen, 

 

too bad. Do you use the latest version of ScriptMaster?

This startup behavior is very erratic, the guys at 360works couldn't even reproduce the error then.

I think the AppleScript key press isn't a bad way.

 

Cheers,

Alexander

 

Yeah, I double-checked the version and I am running the current version. The AppleScript key press is working flawlessly at the moment, but just not as elegant as I would like. But hey, if it works, I am not changing it! With each new version of SM, I'll try again.

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.