Jump to content
Server Maintenance This Week. ×

Taking the result of an applescript to a variable


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

Recommended Posts

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.

Link to comment
Share on other sites

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 '

'"
Link to comment
Share on other sites

This topic is 5336 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.