Drkcore

08 02 2011 Python iTunes Tweet

iTunesの現在聴いている曲名をPythonで取得する

Scripting Bridgeを使ってみた

>>> from ScriptingBridge import *
>>> iTunes = SBApplication.applicationWithBundleIdentifier_("com.apple.iTunes")
>>> iTunes.currentTrack().artist()
u'Noisia & Alix Perez'
>>> iTunes.currentTrack().name()
u'Underprint'

つなぐ候補の三つ組とか有向グラフをデータベース化しておきたいというのがモチベーション

ProductName Native Instruments TRAKTOR PRO

Native Instruments / ?円 ( )


あとは、つなぐ情報を溜めるようなCUIを作ればよいですな。

About

  • もう5年目(wishlistありマス♡)
  • 最近はPythonとDeepLearning
  • 日本酒自粛中
  • ドラムンベースからミニマルまで
  • ポケモンGOゆるめ

Tag

Python Deep Learning javascript chemoinformatics Emacs sake and more...

Ad

© kzfm 2003-2021