Creating txt files in rhino mac

Hey guys, i’m trying to create txt files in rhino mac but its outputting just an empty file. (i’m using Atom with my mac)

sample code:

def Start(file):
file.write(“G28”+"\n"
“G1 Z5.0 F3000”+"\n"
“G1 X50.0 F3000”+"\n"
“G92 E0”+"\n")

file = open(“150517_test_1.txt”, “w”)
def Start(file):
file.close

it worked on my pc but not on my macbook :frowning:

Make sure to write the file to a location where you have rights…