XChat Azure et Applescript

Anarloth

Membre enregistré
29 Décembre 2012
7
1
Bonjour


Recherchant un script me permettant d'afficher sur XChat (Azure) ce que j'écoute (sur Itunes) je suis tombée sur quelques liens.

Mais un bout de "code" ressort souvent c'est un truc dans le genre :

tell application "System Events"
if exists process "iTunes" then
tell application "iTunes"
set theCurrentState to player state
if theCurrentState is paused then
"Now Playing: Nothing, iTunes is currently paused."
else if theCurrentState is stopped then
"Now Playing: Nothing, iTunes is currently stopped."
else
"Now Playing: " & artist of current track & " - " & name of current track & " (Album: " & album of current track & ")"
end if
end tell
else
"Now Playing: Nothing, iTunes is not open."
end if
end tell


Quand je le teste sur l'éditeur, cela fonctionne normalement.
Mais sur XChat pas moyen...

Pourtant je mets bien : exec -o osascript /Users/monnom/Scripts_XChat/XChat_NowPlaying.scpt

Voici ce que ça me renvoie : /Users/monnom/Scripts_XChat/XChat_NowPlaying.scpt: script error -54. Couldn't get error text because of error -1700.

Les quelques uns à qui j'ai demandé, j'ai eu droit à la réponse du genre : "bein les scripts ça ne sert à rien"... :(