SecuritySpy has a applescript dictionary, you can view all supported applescript syntax by opening it in the script editor. Launch Applescript Editor, File -> Open Dictionary then scroll down to SecuritySpy. I used tho following script to pan my cameras to their home position:
tell application "SecuritySpy"
ptz home camera name "Camera 1"
end tell
I did try referencing the cameras using the described `camera number` syntax but this didn't work for me. Here's what's defined for ptz:
ptz v : Execute a PTZ command
ptz left/right/up/down/zoomin/zoomout/home/upleft/upright/downleft/downright/preset1/preset2/preset3/preset4/preset5/preset6/preset7/preset8/savepreset1/savepreset2/savepreset3/savepreset4/savepreset5/savepreset6/savepreset7/savepreset8 : The movement type
[camera number integer] : The camera number
[camera name text] : The camera name