How to use RobotFramework to run multiline applescript command for macOS?

I know that RobotFramework allows applescript to be run using osascript command.

but i have issues when the applescript code is multiline. how do i write a multiline applescript that robotframework can work with?

Hi KimSia,

Did you try \n as described in Escaping?

Dave.