you must move your main script to Documents ( a folder under This Ipad)

when you open another apps file, that path is read only