呼吸de艺术

Live in your world, get owned in mine

用AppleScript设置Adium的状态信息

| Comments

找了下找到个比较挫的办法

1
2
3
tell application "Adium"
  go away with message "Busy"
end tell

但是必须指定鸭子的状态, 最后翻了下文档自己写了段测试成功:

1
2
3
4
5
6
7
8
tell application "Adium"
  set the title of every status to "funny"
  set the status of every account whose status type is not offline to the first status whose title is "funny"
  #   也可以这么写
  #   repeat with state in every status
  #       set title of state to "come on baby"
  #   end repeat
end tell

也许下版本 LessDJ 会多个同步歌曲信息到 鸭子状态的功能 :D

对了 LessDJ 上线一周下载2000多次了, 但最近状态低迷, 需要些时间来添加新功能.

Comments