Re: SoundJam: "busy" detection
Re: SoundJam: "busy" detection
- Subject: Re: SoundJam: "busy" detection
- From: JollyRoger <email@hidden>
- Date: Tue, 16 Jan 2001 23:08:38 -0600
on 1/16/2001 10:48 PM, Marc K. Myers at email@hidden wrote:
>
I ran into a snag in the script I'm writing to automate ripping and
>
encoding files with SoundJam. When you tell the application to
>
"convert", instead of waiting for the conversion to complete it throws
>
control right back to the script. The operations that were supposed to
>
be done against the converted files are executed before the files get
>
converted. SoundJam has no "busy" or "ready" property to test (that I
>
can find).
>
>
Does anyone know how I might be able to detect when the conversion
>
process is taking place and when it ends so I can get this thing in sync?
I determine if SJ is busy by using the "player state" property to test if
the player is playing or paused:
tell application "SoundJam MP"
set theStatus to player state
-- player is busy if playing or paused
set isBusy to (theStatus = playing) or (theStatus = paused)
end tell
I wonder if this would work for conversion as well. Try it and let us know!
HTH
JR