• 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: QuickTime and GarageBand
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QuickTime and GarageBand


  • Subject: Re: QuickTime and GarageBand
  • From: Brennan <email@hidden>
  • Date: Wed, 31 Mar 2004 10:05:18 +0200

On 30/3/04 at 18:48, Dan Schmit <email@hidden> wrote:

> I'm trying to find a workaround for viewing a QuickTime movie while
> recording in GarageBand. I thought about an applescript that told
> both applications to play and record (respectively) at the same time.
>
> Unfortunately, I have two things going against me....
>
> 1. I'm a total applescript newbie
>
> 2. GarageBand isn't applescriptable
>
> Pressing the "R" key starts GarageBand recording, so I was hoping there
> was a way for applescript to trigger that key. I

Possibly using system events, but system events should also be able click
a button or select a menu item too, whatever suits you best. I don't have
GarageBand myself, but it seems that Andrew has given the correct
incantation
>
> All I've been able to muster is....
>
> tell application "GarageBand"
> activate
>
> tell application "QuickTime Player"
> activate
> play movie "kingjohn.mov"
>
> end tell
> end tell

I'd keep the two app 'tell' blocks seperate. Not that it's wrong, what you
have there, but sometimes it's hard to know what 'tell' an 'end tell'
belongs to, so keeping your tell blocks as short as they need to be keeps
things in good order.

tell app "garageband"
activate
end tell

tell application "System Events"
tell process "GarageBand"
keystroke "r"
end tell
end tell

tell app "Quicktime player"
tell (open movie "full:path:to:kingJohn.mov")
play
end tell
end tell

It's also trivial to soft code the path to the movie:

tell app "Quicktime player"
tell (open movie (choose file of type {"MooV"}))
play
end tell
end tell

Good luck!

Brennan
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


References: 
 >QuickTime and GarageBand (From: Dan Schmit <email@hidden>)

  • Prev by Date: RE: [spam] Converting unix styled path (string) to Mac path?
  • Next by Date: SystemEvents - FM7 not possible?
  • Previous by thread: Re: QuickTime and GarageBand
  • Next by thread: RE: [spam] Converting unix styled path (string) to Mac path?
  • Index(es):
    • Date
    • Thread