1. A machine-implemented method for handling a file associated with a program, the method comprising: in response to a request for accessing a file received through a first program, storing the file in a first sandboxed storage area, wherein the file can be accessed by a second program; performing an atomic move operation on the file that atomically moves the file from the first sandboxed storage area to a second sandboxed storage area, wherein the first sandboxed storage area is not accessible to the first program and second program; and invoking the second program to access the file stored in the second sandboxed storage area, wherein the second sandboxed storage area is a part of a sandbox associated with the second program.