AppleScript 推出 1Password mini

AppleScript to Launch 1Password mini

我使用 1Password 来存储我的密码,并 fluid.app 创建一些特定于站点的 apps/browsers

虽然 1Password 与 Chrome、Safari 和其他浏览器集成得很好,但它不能很好地与 Fluid 应用程序配合使用,这就是我的问题所在。

因此,当我在 Fluid 应用程序中时,我创建了一个快捷方式(使用 Keyboard Maestro)到 运行 一个 applescript 来打开 mini。但是,我似乎无法获得启动 mini 的 applescript。这是我的尝试:

  1. tell application "1Password mini" to launch 什么都不做,尽管 AppleScriptEditor 没有报告任何错误
  2. tell application "1Password mini" to open 什么都没有,尽管 AppleScriptEditor 没有报告任何错误
  3. tell application "1Password mini" to activate 没有意义,因为 1Password mini 已经激活了
  4. tell application "1Password" to open 打开主 1Password 应用程序,而不是我需要的迷你应用程序。

有趣的是,当我 运行 (1)、(2) 和 (3) 时,AppleScriptEditor 自动将 1Password mini 替换为 2BUA8C4S2C.com.agilebits.onepassword-osx-helper,这不会为我澄清一切。

有人知道如何解决这个问题吗?
我在 OSX 10.10.2 (Yosemite),如果重要的话

解决方案非常简单,只需要一点 UI 脚本:

tell application "System Events" to tell process "1Password mini"
    tell menu bar item 1 of menu bar 1 to click
end tell

我为 1Password 的开发商 AgileBits 工作。

看起来您找到了解决方案,但这里有另一个选项供您选择:

open location "x-onepassword-helper://search/"

AppleScript 将打开 1Password mini 准备搜索。

如果您能够从 Fluid 获取当前网站的域,您甚至可以打开 1Password Mini 并输入已填写的搜索词:

open location "x-onepassword-helper://search/twitter.com"

希望对您有所帮助!