• Das kreative Thema des Monats Oktober wird vor allem diejenigen unter Euch besonders ansprechen, denen Do-it-yourself quasi im Blut liegt. Zeigt uns Eure Improvisationskünste oder fotografiert, was andere Leute sich so im Alltag zusammengestrickt haben. --> Zum Mitmachen bitte hier klicken

Tune2Twit - Twitterrific AppleScript

Westbär

Weißer Winterglockenapfel
Registriert
06.04.07
Beiträge
881
Hey,
Ich hatte gerade die Idee, auf Twitter zu posten was gerade auf iTunes rennt.
Also hab ich schnell mal was gebastelt, was den Track von iTunes ausliest und via Twitterrific an Twitter sendet.
Ich stell das ganze mal unter GPL v3 :)
Vielleicht brauchts ja jemand.

Code:
-- Tune2Twit - posts current iTunes track on Twitter (via twitterrific)
-- Copyright (C) 2008 Nicolas Haunold
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program.  If not, see <http://www.gnu.org/licenses/>.

tell application "iTunes"
	if player state is playing then
		set currenttrack to name of the current track
		set currentartist to artist of the current track
		set currentalbum to album of the current track
	end if
end tell

tell application "Twitterrific"
	post update "is listening to " & currenttrack & " from the album " & currentalbum & " by " & currentartist
end tell

Falls es sowas schon gibt, erschlagt mich nicht, ich war zufaul um zu googlen und habs mir lieber selbst gebastelt. Suche ergab nix.

Viel Spass :)
 

Anhänge

Gibt es schon :-p Einfach mal auf Macupdate nach Twitter suchen, da gibts einiges. Aber bestimmt nicht so einfach und elegant mit weniger als 20 Zeilen Code gelöst.
 
Gibt es schon :-p Einfach mal auf Macupdate nach Twitter suchen, da gibts einiges. Aber bestimmt nicht so einfach und elegant mit weniger als 20 Zeilen Code gelöst.

DIe haben doch nur Copy & Paste benutzt :P

Ne Spaß beiseite, klar gibts sowas schon... jedoch selbst ist der Mann :D