File: play-oolite-inflight.applescript

package info (click to toggle)
oolite 1.65-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,520 kB
  • ctags: 1,503
  • sloc: objc: 56,004; ansic: 1,201; python: 1,086; java: 267; sh: 259; perl: 259; makefile: 65; xml: 39
file content (13 lines) | stat: -rwxr-xr-x 368 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
tell application "iTunes"
	if playlist "Oolite-Inflight" exists then
		play playlist "Oolite-Inflight"
	else
		set newalias to location of some track of playlist 1
		set newlist to make new playlist
		set name of newlist to "Oolite-Inflight"
		set song repeat of newlist to all
		set shuffle of newlist to true
		add newalias to newlist
		play newlist
	end if
end tell