AppleScript 到 Apple Watch 或 OS X app 到 Apple Watch

AppleScript to Apple Watch or OS X app to Apple Watch

2 个问题。

  1. 是否可以将 AppleScript 动作发送到苹果手表??比如发送要在 Apple Watch 上显示的文本字符串?

  2. 如果第一个问题无法解决,是否可以将信息直接从 OS X 应用程序发送到 Apple Watch?

  1. 不直接。您可以向(phone 或)手表可以接收和显示的远程推送通知服务发送消息,前提是它已在该服务中自行注册。

    Apple Watch takes full advantage of the existing interactive notification support on iOS. If your iOS app supports notifications, Apple Watch displays those notifications at appropriate times. When one of your app’s local or remote notifications arrives on the user’s iPhone, iOS decides whether to display that notification on the iPhone or on the Apple Watch.

  2. 不直接。您无法从 Mac 上的客户端打开与手表的连接。您可以从您的手表或 phone 启动与服务的连接,该服务可以 return 响应。

有关通知的详细信息,请参阅 WatchKit Programming Guide