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.

do shell script not picking up errors

Featured Replies

  • Newbies

Hi All,

I'm new here so please be gentle....

This works for me in the script editor (its part of a longer script)

try

set appnames to do shell script "/hosts/bern/user_data/HR/jobsappv1 -g -i=5"

on error the error_message

display dialog "Error encountered"

return

end try

If the script "jopsappv1" returns an error (exits with 1) then the script does the "on error" bit.

If I run it in filemaker as a "perform applescript" I can't get it to do the "on error" bit when it encounters an error. I even tried giving it the name of a script that does not exist and it still does not do the "on error" bit.

I'm using the "Native applescript" option.

Any pointers very greatfully appreciated.

Chris

  • Author
  • Newbies

I seem to have found an workaround for my problems.

If I wrap my filemaker "Native AppleScript" with a "tell application" and point it at the Applescript utility like this

tell application "osascript"

try

do shell script .....

on error errStr

display ...

end try

end tell

the error handling seems to work.

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.