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.

Taking the result of an applescript to a variable

Featured Replies

Can I take the outcome of an AppleScript script step directly to a viable in any way.

I am using

do shell script "curl http://myserver/someinfo.php"

and would like to perform a calculation on the result without having to take the result to a field.

Thanks,

ft.

You can certainly continue to process the result within AppleScript, using either Unix tools or AppleScript itself (the former preferred). You can "pipe" the result and continue processing using Unix command line, or you can set it into an AppleScript variable, and continue processing that. When you've got it down to more or less what you want, you can set the result into a FileMaker field, then continue to process with FileMaker native functions and/or a script. For example, the title line of my web page (yeah, I know, dumb example, but you didn't give us much to work with :-).

do shell script "curl 'http://fentonjones.com' | grep '

'"

Have you tried using Let to assign the result of the curl statement to a local var within the script?

If there was a way to refer to the result of Applescript within Filemaker, you could set a script variable directly using Set Variable[]. Don't see how using Let() can get around this.

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.