Your code is probably being run within a Safe sandbox. You're probably stuck I'm afraid.
In reply to Re: Overload "open" function by tobyink in thread Overload "open" function by mariusz