MACSCRPT Archives

August 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Lively <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Tue, 7 Aug 2007 08:45:28 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (61 lines)
I would sat that it is a bug with new audio recording.  It doesn't  
actually return the document that it is recording.  Your solution is  
probably the best one

On Aug 7, 2007, at 5:57 AM, Christoph Draxler wrote:

> Hi,
>
> the following script to perform audio recordings via QuickTime  
> Player does not work:
>
> tell application "QuickTime Player"
> 	activate
> 	set newMovie to (new audio recording "QuickTime Player")
>
> 	start newMovie
> 	delay 2
> 	stop newMovie	
> end tell
>
> I get the following event log:
>
> tell application "QuickTime Player"
> 	activate
> 	new audio recording "QuickTime Player"
> 		«class id 2
> 	start «class id 2
> 		"QuickTime Player got an error: Can't make «class id 2 into type  
> reference."
>
> However, this script works:
>
> tell application "QuickTime Player"
> 	activate
> 	set newMovie to (new audio recording "QuickTime Player")
> 	start document 1
> 	delay 1
> 	stop document 1
> end tell
>
> What's the difference between the two?
>
> Any help is greatly appreciated,
>
> Christoph
>
>
>
> --------------------------------------------------------------------------------
> Institute of Phonetics and Speech Processing
> Ludwig-Maximilian-University Munich
> Schellingstr. 3
> D 80799 Munich
> Germany
>
> Tel: +49-(0)89-2180 2807
> GSM: +49-(0)171-2725148
> Fax: +49-(0)89-2180-5790
> --------------------------------------------------------------------------------
>

ATOM RSS1 RSS2