AudioCdPlaylist
, FolderPlaylist
, LibraryPlaylist
, RadioTunerPlaylist
, SubscriptionPlaylist
, UserPlaylist
@Plural("playlists") @Code("cPly") @Name("playlist") @Inherits("item") public interface Playlist extends Reference, Item
Modifier and Type | Method | Description |
---|---|---|
default int |
countArtworks() |
|
int |
countArtworks(String filter) |
|
default int |
countTracks() |
|
int |
countTracks(String filter) |
|
Artwork |
getArtwork(int index) |
|
Artwork |
getArtwork(Id id) |
|
default Artwork[] |
getArtworks() |
|
Artwork[] |
getArtworks(String filter) |
|
String |
getDescription() |
The description of the playlist.
|
int |
getDuration() |
The total length of all tracks (in seconds).
|
String |
getName() |
The name of the playlist.
|
Playlist |
getParent() |
Folder which contains this playlist (if any).
|
Map<String,Object> |
getProperties() |
Returns all properties for an instance of this class.
|
int |
getSize() |
The total size of all tracks (in bytes).
|
Espk |
getSpecialKind() |
Special playlist kind.
|
String |
getTime() |
The length of all tracks in MM:SS format.
|
Track |
getTrack(int index) |
|
Track |
getTrack(Id id) |
|
default Track[] |
getTracks() |
|
Track[] |
getTracks(String filter) |
|
boolean |
isDisliked() |
Is this playlist disliked?
|
boolean |
isFavorited() |
Is this playlist favorited?
|
boolean |
isVisible() |
Is this playlist visible in the Source list?
|
void |
setDescription(String description) |
The description of the playlist.
|
void |
setDisliked(boolean disliked) |
Is this playlist disliked?
|
void |
setFavorited(boolean favorited) |
Is this playlist favorited?
|
void |
setName(String name) |
The name of the playlist.
|
getContainer, getId, getIndex, getKlass, getPersistentId
cast, getApplicationReference, getObjectReference, getTypeClass, isInstanceOf
static final TypeClass CLASS
@Kind("element") @Type("track") default Track[] getTracks()
Track
s@Kind("element") @Type("track") Track[] getTracks(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"Track
s@Kind("element") @Type("track") Track getTrack(int index)
index
- index into the element list (zero-based)Track
at the requested index@Kind("element") @Type("track") Track getTrack(Id id)
id
- id of the itemTrack
with the requested id@Kind("element") @Type("track") default int countTracks()
Track
s@Kind("element") @Type("track") int countTracks(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"@Kind("element") @Type("artwork") default Artwork[] getArtworks()
Artwork
s@Kind("element") @Type("artwork") Artwork[] getArtworks(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"Artwork
s@Kind("element") @Type("artwork") Artwork getArtwork(int index)
index
- index into the element list (zero-based)Artwork
at the requested index@Kind("element") @Type("artwork") Artwork getArtwork(Id id)
id
- id of the itemArtwork
with the requested id@Kind("element") @Type("artwork") default int countArtworks()
Artwork
s@Kind("element") @Type("artwork") int countArtworks(String filter)
filter
- AppleScript filter clause without the leading "whose" or "where"@Code("pDes") @Kind("property") @Name("description") @Type("text") String getDescription()
@Code("pDes") @Kind("property") @Name("description") @Type("text") void setDescription(String description)
description
- new property value@Code("pHat") @Kind("property") @Name("disliked") @Type("boolean") boolean isDisliked()
@Code("pHat") @Kind("property") @Name("disliked") @Type("boolean") void setDisliked(boolean disliked)
disliked
- new property value@Code("pDur") @Kind("property") @Name("duration") @Type("integer") int getDuration()
@Code("pnam") @Kind("property") @Name("name") @Type("text") String getName()
@Code("pnam") @Kind("property") @Name("name") @Type("text") void setName(String name)
@Code("pLov") @Kind("property") @Name("favorited") @Type("boolean") boolean isFavorited()
@Code("pLov") @Kind("property") @Name("favorited") @Type("boolean") void setFavorited(boolean favorited)
favorited
- new property value@Code("pPlP") @Kind("property") @Name("parent") @Type("playlist") Playlist getParent()
@Code("pSiz") @Kind("property") @Name("size") @Type("integer") int getSize()
@Code("pSpK") @Kind("property") @Name("special kind") @Type("eSpK") Espk getSpecialKind()
@Code("pTim") @Kind("property") @Name("time") @Type("text") String getTime()
@Code("pvis") @Kind("property") @Name("visible") @Type("boolean") boolean isVisible()
Map<String,Object> getProperties()
getProperties
in interface Item