Question on Applescript setting Annotation for QT7
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.
|
_______________________________________________
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