Open a text script in blender and execute it in OS

Hello,

I have tried to write a simple_script.py

import bpy

bpy.ops.text.open(filepath='./Read_Directory_and_Import_mhx.py', filter_blender=False, filter_image=False, filter_movie=False, filter_python=True, filter_font=False, filter_sound=False, filter_text=True, filter_btx=False, filter_collada=False, filter_folder=True, filemode=9, internal=False)

bpy.ops.text.run_script()

#bpy.ops.wm.read_homefile()

and now I want to execute this script through terminal using this script

import os

path = os.getcwd()
print(path)
os.system("cd path/blender.app/Contents/MacOS")
os.system("./blender -P path/simple_script.py")

but I get this

Warning - no scene - scene properties not set
Segmentation fault: 11

I get the same message if I try to do it using the terminal in the first placeā€¦

Anyone having the same problem? Anyone solved it?

Generally - if you manage to get blender to segfault - its a bug. (unless you purposefully do unsupported stuff)
Please report a bug in our tracker.

For general info on crashing see:
http://www.blender.org/documentation/blender_python_api_2_62_1/info_gotcha.html#help-my-script-crashes-blender