Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Security Movie



Peter Baxter wrote on Sat, 11 Nov 2006 10:54:37 +1100:

>If I use the  
>following script, it refuses to save it to the file set, but only on  
>some of the computers.  My G5 Duo works perfectly at home.  What is  
>the problem?
>
>
>
>tell application "Finder"
>	set myfile to "Security.mov"
>end tell
>
>tell application "QuickTime Player"
>	--activate
>	new movie recording
>	start first recording
>	delay (1200)
>	stop first recording
>	stop every movie
>	close movie 1 saving in myfile
>end tell

It works for me with QuickTime Player 7.1.3, but not with the earlier
version on my other computer. The obvious problem in that case is that
your full specification for 'myfile' is just "Security.mov", without any
mention of the path or the fact that it's a file.

On the machine where it does work, the file appears at the root of the
startup disk. Assuming that's what you want, you could try coding your
script like this:

  set myfile to (path to startup disk as Unicode text) & "Security.mov"
  
  tell application "QuickTime Player"
    activate
    new movie recording
    start first recording
    delay (1200)
    stop first recording
    stop every movie
    close movie 1 saving in file myfile
  end tell

I don't know if this will work on _your_ other machines, but it's more
likely to.

NG

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

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.