Re: Automatic stops in a playlist within iTunes
Re: Automatic stops in a playlist within iTunes
- Subject: Re: Automatic stops in a playlist within iTunes
- From: Loren Ryter <email@hidden>
- Date: Wed, 23 Apr 2008 10:51:47 -0400
- Thread-topic: Automatic stops in a playlist within iTunes
Do you want actual stops or pause? If you play after a pause iTunes will
resume where it left off. If you:
tell application "iTunes" to stop
... Then when you play it will start at the beginning of the track.
Also, if you're doing a radio show, wouldn't you want a fade out?
There is a stay-open script from long ago called Street Spirit Fade out that
I think you could find on Doug's site.
If you wanted to script it, instead of a timed fade out, you could modify
the script to watch for certain tracks (or any other criteria) and fade out
when you want it to.
Lots of possibilities, depends on what you want it to do.
If you're using the empty track, you could call it "stop track" and a script
could monitor when that is playing and then pause iTunes, and cue up the
next track. Here's one way to do this:
---------------
property stop_track_name : "Stop Track"
on run
tell application "iTunes"
play
end tell
end run
on idle
tell application "iTunes"
set ps to player state
if player state is playing then
set n to name of current track
if n begins with stop_track_name then
pause
next track
set n to name of current track
activate
display dialog "Next Track:" & return & n buttons {"Play"}
default button "Play"
play
end if
end if
end tell
return 1
end idle
(*
note: "return 1" means check iTunes every second
Adjust value accordingly
*)
-------------------
On 4/21/08 9:44 PM, "Jean-Louis Tremblay" <email@hidden> wrote:
> Is there a way to insert automatic stops in a playlist? AppleScript
> or otherwise?
>
> I am using iTunes doing a radio show and I want to stop the music for
> me to talk.
>
> TIA
>
> Jean-Louis
> _______________________________________________
> 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