// Save the photo camera.takePhoto();

// Launch the camera app app.launch("com.example.camera");

Here's an example script that demonstrates some basic mobile scripting concepts: