PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : AppleScript für den Was hört ihr gerade


Superguppy
2008-11-04, 10:48:49
AppleScript für den "Was hört ihr gerade?" Thread

set xtrack to ""
set xname to ""
set xalbum to ""
set xgenre to ""

tell application "iTunes"
copy (get name of current track) to xtrack
copy (get artist of current track) to xname
copy (get album of current track) to xalbum
copy (get genre of current track) to xgenre
end tell

set trackname to xname & " - " & xtrack & return & xalbum & return & xgenre

tell application "Finder"
set the clipboard to trackname as string
end tell

Einfach im Skripteditor einfügen, als .app Speichern und bequem per Spotlight oder Dock-Icon starten. Danach sind alle wesentlichen Infos in der Zwischenablage, bereit eingefügt zu werden. Wer das Ganze lieber per Tastatur-Shortcut startet, ist mit Spark (http://www.versiontracker.com/dyn/moreinfo/macosx/22675) gut bedient.

Schuld daran, dass ich das gebastelt habe, ist Sonyfreak. ;D


EDIT: Beispielausgabe
Shakira - Objection (Tango)
Laundry Service
Pop


EDIT2: Verdammt ist AppleScript genial ... ich glaube wir zwei (also die Scripts und ich) werden noch viel Spaß miteinander haben. :biggrin: