I read this discussion with interest... that's good to know!
May I also suggest to submit it as a bug to Apple.
That is, if a function fails because of sandboxing then it shouldn't just fail silently. There should be a clear error or exception: The operation cannot be performed because sandboxing is enabled.
Otherwise, Apple once again stabs developers in the back with its pseudo-security mumbo-jumbo.