你正在聽什麼音樂?

本區專門提供 Mac OS X 使用者交換使用心得

版主: ross_ttbryanchangdigdogchester

回覆文章
內容
發表人
頭像
digdog
討論區管理員
文章: 1297
註冊時間: 05/02/2001 1:01 am
聯繫:

你正在聽什麼音樂?

#1 文章 digdog »

頭像
謝孟叡
討論區管理員
文章: 960
註冊時間: 05/01/2001 1:01 am
來自: 邪教組織 #osxchat
聯繫:

你正在聽什麼音樂?

#2 文章 謝孟叡 »

<BLOCKQUOTE><font size="1" face="XYZ">quote:</font><HR>原始發信人 digdog:
<STRONG> 圖檔

SetiChatStatus</STRONG><HR></BLOCKQUOTE>

啊,被照到
頭像
bryanchang
討論區管理員
文章: 7057
註冊時間: 04/19/2001 1:01 am
來自: The '60s
聯繫:

你正在聽什麼音樂?

#3 文章 bryanchang »

中間那個是我...
頭像
yllan
留言破百
文章: 105
註冊時間: 12/01/2002 1:01 am
來自: 台北
聯繫:

你正在聽什麼音樂?

#4 文章 yllan »

The default script is a little buggy... It cannot display radio correctly.

You can patch that (in the package, called "Getinfo.scpt",

replace it with:

-- begin of file --<BLOCKQUOTE><font size="1" face="XYZ">code:</font><HR><pre>
tell application "System Events"
if ((application processes whose (name is equal to "iTunes")) count) is greater than 0 then
tell application "iTunes"
if player state is playing then
if artist of current track is not missing value then
return (artist of current track) & " - " & (name of current track)
else
return name of current track & " : " & comment of current track
end if
else if player state is paused then
return "Paused"
else if player state is stopped then
return "Quiet"
end if
end tell
else
return "Off"
end if
end tell</pre><HR></BLOCKQUOTE>
-- end of file --

Now it works!
頭像
julian9
基本會員
文章: 45
註冊時間: 11/22/2001 1:01 am
來自: Chicago, USA
聯繫:

你正在聽什麼音樂?

#5 文章 julian9 »

<BLOCKQUOTE><font size="1" face="XYZ">quote:</font><HR>原始發信人 藍永倫:
<STRONG>The default script is a little buggy... It cannot display radio correctly.

You can patch that (in the package, called "Getinfo.scpt",

replace it with:
...
Now it works!</STRONG><HR></BLOCKQUOTE>

is it possible to grab out of the song's name which is currently played in the radio station?
頭像
yllan
留言破百
文章: 105
註冊時間: 12/01/2002 1:01 am
來自: 台北
聯繫:

你正在聽什麼音樂?

#6 文章 yllan »

I tried it before...
It seems there's no way to get the info from AppleScript. But don't believe me! [img]images/smiles/icon_smile.gif[/img]
I don't know AppleScript until this afternoon I want to create my custom script. [img]images/smiles/icon_smile.gif[/img]

[ 12-01-2002: 留言編輯者: 藍永倫 ]
回覆文章