strngr12

Applescript to shell script to field

Discussion created by strngr12 on Jun 5, 2014
Latest reply on Jun 5, 2014 by BruceRobertson

Hello Everyone,

 

I have a calculated Applescript that is really just a shell script. I can run it easily enough and get the result to a text file on my comp., but how do I send the result directly to a field in the current layout? For example:

 

Set Variable [$someShellScript; Value:"ls ~/Desktop"]

Perform AppleScript ["do shell script " & Quote($someShellScript)]

 

If I want the results of that ls command to go straight to a field in my current Filemaker layout and record - say, Current::Desktop_List - how would I go about that?

 

Any hwlp would be appreciated!

 

Thanks,

 

Dan

Outcomes