Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/japlscript/obstunes

Java API for iTunes (macOS)
https://github.com/japlscript/obstunes

apple applescript itunes japlscript java macos

Last synced: about 2 months ago
JSON representation

Java API for iTunes (macOS)

Awesome Lists containing this project

README

        

[![LGPL 2.1](https://img.shields.io/badge/License-LGPL_2.1-blue.svg)](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.tagtraum/obstunes/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.tagtraum/obstunes)
[![Build and Test](https://github.com/japlscript/obstunes/workflows/Build%20and%20Test/badge.svg)](https://github.com/japlscript/obstunes/actions)

# Obstunes

*Obstunes* is a Java API for iTunes (macOS) based on
[JaplScript](https://github.com/japlscript/japlscript).

## Installation

Obstunes is released via [Maven](https://maven.apache.org).
You can install it via the following dependency:

```xml

com.tagtraum
obstunes

```

The Maven artifacts also contain sources and javadocs.

If you are using [modules](https://en.wikipedia.org/wiki/Java_Platform_Module_System),
its name is `tagtraum.obstunes`.

## Usage

To use the generated code, do something like this:

```java
import com.tagtraum.macos.itunes.Application;

public class PlayPause {

public static void main(final String[] args) {
Application app = Application.getInstance();
// then use app, for example, to toggle playback (if a track is in the player)
app.playpause();
}
}
```

## API

You can find the complete [API here](https://japlscript.github.io/obstunes/com/tagtraum/macos/itunes/package-summary.html).

## Shipping

For information about shipping apps with this library, please see
the corresponding notes about signing, notarization etc. in the
[JaplScript documentation](https://github.com/japlscript/japlscript/blob/main/README.md).