Re: Question on Applescript setting Annotation for QT7
Re: Question on Applescript setting Annotation for QT7
- Subject: Re: Question on Applescript setting Annotation for QT7
- From: Bill Ganzel <email@hidden>
- Date: Mon, 6 Dec 2010 14:00:49 -0600
Emmanuel -- Thanks so much. I got it to work, and even got it record
three different annotations. Thanks.
Bill Ganzel
On Dec 2, 2010, at 12:56 PM, Emmanuel LEVY wrote:
If it can help, I could get that to work:
set w to document 1
make new annotation at end of annotations of w with properties {full
text:"Bill", name:"Artist"}
Emmanuel
Satimage-software
On Dec 2, 2010, at 7:07 PM, Bill Ganzel wrote:
Tried that and it didn't work either.
Bill
On Dec 1, 2010, at 7:48 PM, Deivy Petrescu wrote:
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
_______________________________________________
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to 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