Latest 0.3.0
Homepage https://github.com/kmikiy/SpotifyAppleScript
License MIT
Platforms osx 10.10
Authors

A Spotify wrapper class for controlling Spotify on macOS.

This wrapper class was originally created for SpotMenu.

Installation

To integrate Spotify into your Xcode project using CocoaPods, specify it in your Podfile:

platform :osx, '10.10'
use_frameworks!

target '<Your Target Name>' do
    pod 'SpotifyAppleScript', '~> 0.3'
end

Then, run the following command:

$ pod install

Usage example

import SpotifyAppleScript

// Get current artist
if let artist = SpotifyAppleScript.currentTrack.artist {
    print(artist)
}

// Get current track title
if let title = SpotifyAppleScript.currentTrack.title {
    print(title)
}

// Play next song
SpotifyAppleScript.playNext()

For a real-world example checkout SpotMenu

Latest podspec

{
    "name": "SpotifyAppleScript",
    "version": "0.3.0",
    "summary": "A Spotify wrapper class for controlling Spotify on macOS",
    "homepage": "https://github.com/kmikiy/SpotifyAppleScript",
    "license": "MIT",
    "authors": {
        "Kristyu00e1n Miklu00f3s": "[email protected]"
    },
    "social_media_url": "http://twitter.com/kmikiyy",
    "platforms": {
        "osx": "10.10"
    },
    "source": {
        "git": "https://github.com/kmikiy/SpotifyAppleScript.git",
        "tag": "0.3.0"
    },
    "source_files": "SpotifyAppleScript/*.swift",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This