This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| enum JSONValue: Equatable, | |
| ExpressibleByStringLiteral, | |
| ExpressibleByFloatLiteral, | |
| ExpressibleByIntegerLiteral, | |
| ExpressibleByDictionaryLiteral, | |
| ExpressibleByArrayLiteral, | |
| ExpressibleByBooleanLiteral, | |
| ExpressibleByNilLiteral, | |
| RawRepresentable { | |
| typealias RawValue = Any |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on textualcmd() | |
| set nowPlaying to "I'm not currently playing anything." | |
| # iTunes | |
| if isRunning("iTunes") then | |
| tell application "iTunes" | |
| if player state is playing then | |
| if current stream title is not missing value then | |
| set nowPlaying to "/me is currently listening to '" & current stream title & "' on " & name of current track & "." |