Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Taking the result of an applescript to a variable


This topic is 5539 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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 '

'"
Posted

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.

This topic is 5539 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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