• 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
Question on Applescript setting Annotation for QT7
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question on Applescript setting Annotation for QT7


  • Subject: Question on Applescript setting Annotation for QT7
  • From: Bill Ganzel <email@hidden>
  • Date: Wed, 1 Dec 2010 08:23:00 -0600

I'm a relative newbie. I'm trying to write a script that will activate QuickTime Player 7 (so that I can have access to the Annotations) record a movie using the iSight Camera, and then prompt the user to enter his or her name and other information (to follow). I'm having trouble telling QT7 to set the annotation. Any help would be very appreciated. Here is what I have so far. The first part works -- QT7 opens and records the movie, and the script seems to capture the user input.  The error message I get follows. 

-------

tell application "QuickTime Player"
activate
new movie recording
tell document 0 to start
delay 5 -- make this 300 in final
tell document 0 to stop
-- get user input
display dialog "Please tell us your name 
Then hit \"Return\" when finished" default answer ""
set varUserName to text returned of the result


tell front document
set the full text of annotation "Author" to varUserName
end tell
end tell

------

Here is the error message, were "Bill" is the text I entered in the dialog box  -- 

error "QuickTime Player 7 got an error: Can’t set annotation \"Author\" of document 1 to \"Bill\"." number -10006 from annotation "Author" of document 1 to «class Bill»

Thanks.

Bill Ganzel
The Ganzel Group Communications, Inc.
http://www.ganzelgroup.com



 _______________________________________________
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/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Question on Applescript setting Annotation for QT7
      • From: Deivy Petrescu <email@hidden>
    • Re: Question on Applescript setting Annotation for QT7
      • From: André Renault <email@hidden>
    • Re: Question on Applescript setting Annotation for QT7
      • From: André Renault <email@hidden>
  • Prev by Date: Re: How to adjust this script to work on Snow Leopard?
  • Next by Date: remove icon from picture files
  • Previous by thread: Re: How to adjust this script to work on Snow Leopard?
  • Next by thread: Re: Question on Applescript setting Annotation for QT7
  • Index(es):
    • Date
    • Thread