AppleScript的到"告诉" Spotify的播放不OSX更新优胜美地工作后, [英] Applescript to "tell" Spotify to play isn't working after OSX update to Yosemite

查看:201
本文介绍了AppleScript的到"告诉" Spotify的播放不OSX更新优胜美地工作后,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

previously到优胜美地更新,我用此内容的AppleScript来控制我的Spotify的。

Previously to the Yosemite update, I used this Applescript to control my Spotify.

一切工作作为一个魅力,当我跑的/ usr / bin中/ osascript /Users/jdrummond/SpotifyControl.scpt播放/暂停

Everything worked as a charm when I ran /usr/bin/osascript /Users/jdrummond/SpotifyControl.scpt play/pause.

现在,我有我的OSX更新到优胜美地,我不断收到这个当我运行相同的命令:

Now that I have updated my OSX to Yosemite, I keep getting this when I run the same command:

/Users/jdrummond/SpotifyControl2.scpt:1217:1222: script error: Expected end of line, etc. but found identifier. (-2741)

所以,我试图创建一个简单的AppleScript与Spotify的交互:

So I tried to create a simple Applescript to interact with Spotify:

using terms from application "Spotify"
    tell application "Spotify" to play
end using terms from

但我也得到一个错误:

But I'm also getting an error:

我在做什么错的,如何与Spotify的约塞米蒂上的互动?什么改变了?

What am I doing wrong and how to interact with Spotify on Yosemite? Anything changed?

推荐答案

此问题被报告给Spotify和将其固定在下次更新的桌面客户端(我是一个开发商那里可以验证它已修复)。

This issue was reported to Spotify and will be fixed in the next update to the desktop client (I'm a developer there and can verify that it has been fixed).

这篇关于AppleScript的到"告诉" Spotify的播放不OSX更新优胜美地工作后,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆