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

Re: Question on Applescript setting Annotation for QT7


  • Subject: Re: Question on Applescript setting Annotation for QT7
  • From: Deivy Petrescu <email@hidden>
  • Date: Wed, 1 Dec 2010 20:48:42 -0500


On Dec 1, 2010, at 9:23 AM, Bill Ganzel wrote:

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


Change the last tell to the following:

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

Remove the ***
But mind you that you will only see this annotation via script.
It will not show up in the info window.
HTH



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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Question on Applescript setting Annotation for QT7
      • From: Bill Ganzel <email@hidden>
References: 
 >Question on Applescript setting Annotation for QT7 (From: Bill Ganzel <email@hidden>)

  • Prev by Date: Re: Question on Applescript setting Annotation for QT7
  • Next by Date: Detecting a key press
  • Previous by thread: Re: Question on Applescript setting Annotation for QT7
  • Next by thread: Re: Question on Applescript setting Annotation for QT7
  • Index(es):
    • Date
    • Thread