• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Using the apple built in camera as a security camera
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using the apple built in camera as a security camera


  • Subject: Using the apple built in camera as a security camera
  • From: Peter Baxter <email@hidden>
  • Date: Wed, 1 Nov 2006 21:28:59 +1100

I am currently trying to create a script which I will call from iCal to see who is using a school computer at lunchtime by setting Quicktime to record a video of the users.  Unfortunately I don't seem to be able to persuade Quicktime to save the resulting video.  The script which does not work is below:
If you can help, it would be very useful.

tell application "QuickTime Player"
activate
new movie recording
delay 5 --or however long is needed


--stop every movie
end tell
tell application "QuickTime Player"
activate


try
if not (exists movie 1) then error "No movies are open."


stop every movie


-- CHECK FOR THE CORRECT VERSION
set QT_version to (QuickTime version as string)
set player_version to (version as string)
if (QT_version is less than "5.0") or ¬
(player_version is less than "5.0") then
error "This script requires QuickTime 5.0 or greater." & ¬
return & return & ¬
"Current QuickTime Version: " & QT_version & return & ¬
"Current QuickTime Player Version: " & player_version
end if


-- CHECK FOR QUICKTIME PRO
if QuickTime Pro installed is false then
set the target_URL to "http://www.apple.com/quicktime/download/"
display dialog "This script requires QuickTime Pro." & return & return & ¬
"If this computer is currently connected to the Internet, " & ¬
"click the “Upgrade” button to visit the QuickTime Website at:" & ¬
return & return & target_URL buttons {"Upgrade", "Cancel"} default button 2
ignoring application responses
tell application "Finder"
open location target_URL
end tell
end ignoring
error number -128
end if


tell movie 1
try
set this_name to the full text of annotation "Full Name"
on error -- no full name annotation exists
set this_name to ""
end try
display dialog "Enter the name for the front movie:" default answer this_name
set the full text of annotation "Full Name" to the text returned of the result
end tell
on error error_message number error_number
if the error_number is not -128 then
beep
display dialog error_message buttons {"Cancel"} default button 1
end if
end try
end tell
 
Peter Baxter
email@hidden


iChat email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Using the apple built in camera as a security camera
      • From: "Gary (Lists)" <email@hidden>
  • Next by Date: Re: Ejecting the tray on CD/DVD Drive
  • Next by thread: Re: Using the apple built in camera as a security camera
  • Index(es):
    • Date
    • Thread