AppleScript将推出1Password mini [英] AppleScript to Launch 1Password mini

查看:99
本文介绍了AppleScript将推出1Password mini的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用1Password存储密码,并使用fluid.app创建一些特定于站点的应用程序/浏览器

I use 1Password to store my passwords, and fluid.app to create a few site-specific apps/browsers

1Password与Chrome,Safari和其他浏览器很好地集成在一起,但在Fluid应用程序上不能很好地发挥作用,这就是我的麻烦所在.

While 1Password integrates well with Chrome, Safari and other browsers, it doesn't play nicely with Fluid apps, which is where my troubles lie.

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

I have therefore created a shortcut (with Keyboard Maestro) to run an applescript to open the mini, when I am in Fluid apps. However, I can't seem to get the applescript to launch the mini. Here are my attempts:

  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应用程序,而不是我需要的mini.
  1. tell application "1Password mini" to launch does nothing, though AppleScriptEditor doesn't report any errors
  2. tell application "1Password mini" to open nothing, though AppleScriptEditor doesn't report any errors
  3. tell application "1Password mini" to activate is pointless, as 1Password mini is already activated
  4. tell application "1Password" to open opens the main 1Password application, not the mini, which is what I need.

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

Interestingly, when I run (1), (2), and (3), AppleScriptEditor automatically replaces 1Password mini with 2BUA8C4S2C.com.agilebits.onepassword-osx-helper, which doesn't clarify things for me at all.

有人知道如何解决这个问题吗?
如果重要的话,我使用的是OSX 10.10.2(优胜美地)

Does anybody have any clue how this can be solved?
I'm on OSX 10.10.2 (Yosemite), if it matters

推荐答案

我为1Password的开发人员AgileBits工作.

您似乎找到了解决方案,但这是您的另一选择:

Looks like you found a solution, but here's another option for you:

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

AppleScript将打开准备搜索的1Password mini.

That AppleScript will open 1Password mini ready to search.

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

And if you're able to get the current website's domain from Fluid, you could even open 1Password Mini with a search term already filled in:

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

希望对您有帮助!

这篇关于AppleScript将推出1Password mini的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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