This is a staging forum for AgileBits, not an official support forum. Visit http://discussions.agilebits.com instead.

Using Applescript with 1Password

Is there a way to find out the location of the user's keychain using Applescript? I was able to do it easily from the plist in the web version, but not with the MAS version...

Comments

  • khad
    khad Social Choreographer
    I'm no AppleScript expert, but the preference file for the 1Password 3.9 Helper is located here:



    [CODE]~/Library/Containers/com.agilebits.onepassword-osx-helper/Data/Library/Preferences/com.agilebits.onepassword-osx-helper.plist[/CODE]



    And the relevant key is:





    [CODE]

    <key>DatabasePath</key>

    <string>/Path/To/Your/1Password.agilekeychain</string>[/CODE]



    I hope that helps. Please let me know. <img src='http://forum.agilebits.com/public/style_emoticons/<#EMO_DIR#>/smile.png' class='bbc_emoticon' alt=':)' />
  • NovaScotian
    NovaScotian Senior Member
    Certainly not the case with 1Password 3.8.20, Khad.
  • khad
    khad Social Choreographer
    edited September 2012
    Nope. It is not. <img src='http://forum.agilebits.com/public/style_emoticons/<#EMO_DIR#>/smile.png' class='bbc_emoticon' alt=':)' />



    Since lonevvolf said he was able to obtain the information just fine from "the web version" (3.8.x) and this is the 3.9 forum, I didn't include that information. <img src='http://forum.agilebits.com/public/style_emoticons/<#EMO_DIR#>/wink.png' class='bbc_emoticon' alt=';)' />



    The preference file for the 1Password 3.8 is located in the "usual" location (not in the Containers folder) since 3.8 is not sandboxed:



    [CODE]~/Library/Preferences/ws.agile.1Password.plist[/CODE]



    And the relevant key is:



    [CODE]<key>AgileKeychainLocation</key>

    <string>/Path/To/Your/1Password.agilekeychain</string>[/CODE]



    <img src='http://forum.agilebits.com/public/style_emoticons/<#EMO_DIR#>/biggrin.png' class='bbc_emoticon' alt=':D' />
  • NovaScotian
    NovaScotian Senior Member
    Thanks, Khad -- I didn't notice that I was in the wrong topic. <img src='http://forum.agilebits.com/public/style_emoticons/<#EMO_DIR#>/skype_sadsmile.png' class='bbc_emoticon' alt=':-(' />
  • thightower
    thightower &quot;T-Dog&quot; Agile&#39;s Mascot Community Moderator
    Hey NS



    I am just glad to see you still hanging around here like myself.
  • lonevvolf
    lonevvolf Junior Member
    Thanks! That worked perfectly!
  • khad
    khad Social Choreographer
    Great! <img src='http://forum.agilebits.com/public/style_emoticons/<#EMO_DIR#>/biggrin.png' class='bbc_emoticon' alt=':D' />