Hi,
Man kann ja iTunes auf entfernten Mac OS X Rechnern steuern:
Nun würde ich gerne überprüfen,Code:tell application "iTunes" of machine "eppc://192.168.1.200" to next track
Meine ersten Ansätze:Code:ob das entfernte iTunes läuft dann das entfernte iTunes steuern wenn nein dann das lokale iTunes steuern.
Allerdings funktioniert das nicht, weil wenn hinter "of machine" eine Variable und kein String-Literal folgt, denkt er dass playpause eine Variable wäreCode:on getHost() tell application "System Events" of machine "eppc://192.168.1.200" to set isRunning to (name of processes) contains "iTunes" if isRunning then return "eppc://192.168.1.200" else return "eppc://192.168.1.201" end if end getHost try set theHost to getHost() tell application "iTunes" of machine theHost to playpause end try![]()
Komme mit Applescript nicht wirklich klar. Es ist einfach nicht logisch.
Code:#funktioniert: tell application "iTunes" of machine "eppc://192.168.1.200" to playpause #funktioniert nicht! set theHost to "eppc://192.168.1.200" tell application "iTunes" of machine theHost to playpause
Und dann ist auch noch die Undo-Funktion vom Scripteditor verbuggt... alter schwede
Danke![]()



Zitieren
