Jump to content

1Password — Search and open 1Password items


Recommended Posts

Posted

I've tried to get this to work a few times and selecting "sign in and update items" is doing nothing.


Here is the diagnostic output:
 

### Workflow version
2022.15

### Alfred version
5.0

### macOS version
11.6.7

### Architecture
i386

### Preferences
Default

### 1Password version
8.7.3

### op version
In Workflow: 2.2.0
In /usr/local: NOT installed

### Biometric unlock
NOT enabled

### Custom terminal feature
Enabled

### Launchd job
Loaded: -    0    com.alfredapp.1password
Installed

 

Posted (edited)

(long time user, first time poster)

 

FWIW...

 

I want to keep my biometric unlock enabled / use my installed version of 1Password CLI.

 

During setup, I was getting the error message:

 

connecting to desktop app: determining parent proces of 3820: operation not permitted

 

I needed to upgrade my 1Password CLI to v2.5.1, which is a bugfix release (circa June) that specifically addresses a permissions issue.

 

After upgrading, the new integration is workin' like a champ for me. 👍

 

Also a really cool way of learning non-trivial Alfred workflows! 🙌🏻

Edited by jtigger
clarify "new" status; new to forums, not the tool.
Posted

No luck getting it to work. After installing the workflow, typing "1p" in Alfred only shows the entry "1Password /Applications/1Password.app" -- there's no option to launch 1Password's command-line tool in Terminal.

 

### Workflow version
2022.15

### Alfred version
5.0

### macOS version
12.4

### Architecture
arm64

### Preferences
Default

### 1Password version
8.8.0

### op version
In Workflow: 2.2.0
In /usr/local: NOT installed

### Biometric unlock
NOT enabled

### Custom terminal feature
NOT enabled

### Launchd job
Loaded: -    0    com.alfredapp.1password
Installed
 

Posted

Welcome @awcm0n,

 

2 minutes ago, awcm0n said:

there's no option to launch 1Password's command-line tool in Terminal.

 

It reads “Sign in and update items”.

Posted
4 minutes ago, vitor said:

It reads “Sign in and update items”.

 

Typing "1p" in Alfred only shows the entry "1Password /Applications/1Password.app" -- nothing else related to 1Password or the workflow.

Posted

image.png.a24860cc289fe3720f5e97bebed8fc30.png

 

[14:06:43.569] Logging Started...
[14:06:50.714] 1Password[Script Filter] Queuing argument '(null)'
[14:06:50.746] 1Password[Script Filter] Script with argv '(null)' finished
[14:06:50.750] 1Password[Script Filter] {"items":[]}

 

 

Posted
11 minutes ago, vitor said:

Close the 1Password app. Then do :1pextrasReset accounts and try again.

This fixed the problem. Thanks a lot.

Posted
3 minutes ago, vitor said:

@drpbier You run it in Alfred, not the Terminal.

Aah.

 

### Workflow version
2022.12

### Alfred version
4.7

### macOS version
12.4

### Architecture
i386

### Workflow environment variables
Dict {
    auto_refresh = 1
    logins_only = 0
    hostnames_only = 1
}

### 1Password version
8.8.0

### op version
In Workflow: 2.2.0
In /usr/local: 2.5.1

### Biometric unlock
NOT enabled

### Custom terminal feature
NOT enabled

### Launchd job
Loaded: -    0    com.alfredapp.1password
Installed
 

Posted
6 minutes ago, vitor said:

You are a version behind and it’s been over a month since you last posted on this thread. Please update, do the command, and paste the new debugger output.

Yes, I thought I'd come back and try again. Apologies. New output below

### Workflow version
2022.13

### Alfred version
4.7

### macOS version
12.4

### Architecture
i386

### Workflow environment variables
Dict {
    auto_refresh = 1
    logins_only = 0
    hostnames_only = 1
}

### 1Password version
8.8.0

### op version
In Workflow: 2.2.0
In /usr/local: 2.5.1

### Biometric unlock
NOT enabled

### Custom terminal feature
NOT enabled

### Launchd job
Loaded: -    0    com.alfredapp.1password
Installed
 

Posted

I mean the the debugger output (open it and perform the failing action). Also, whatever output the Terminal shows, if that’s the case. I don’t know if the issue you’re facing is still the same.

 

Posted (edited)
54 minutes ago, vitor said:

I mean the the debugger output (open it and perform the failing action). Also, whatever output the Terminal shows, if that’s the case. I don’t know if the issue you’re facing is still the same.

 

OK. the issue I'm facing is that when I open the Alfred dialogue and use the 1P command to 'Sign in and update items' I get the terminal saying I'm running an old version of the CLI despite having updated it (I thought)

See Terminal output:

Last login: Thu Jul 21 17:56:24 on ttys000

You have mail.

 

The default interactive shell is now zsh.

To update your account to use zsh, please run `chsh -s /bin/zsh`.

For more details, please visit https://support.apple.com/kb/HT208050.

iMac:~ davidbier$   /bin/zsh /var/folders/mt/6hsg69gn461by0hg349zgz6c0000gn/T/tmp.7Yirk0rH

 

[ERROR] 2022/07/21 18:02:57 cannot create directory "/Users/davidbier/.config/op" and the parent directories: mkdir /Users/davidbier/.config/op: permission denied

./1password.js: execution error: Error: SyntaxError: JSON Parse error: Unexpected EOF (-2700)

[ERROR] 2022/07/21 18:02:57 cannot create directory "/Users/davidbier/.config/op" and the parent directories: mkdir /Users/davidbier/.config/op: permission denied

./1password.js: execution error: Error: SyntaxError: JSON Parse error: Unexpected EOF (-2700)

/Users/davidbier/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.2188584F-CC60-49F0-8525-BAB76ADBC925/signin.zsh:16: command not found: ''

 

------------------------- IMPORTANT -------------------------

 

You have an old version of the 1Password command-line tool.

Install the latest version from:

 

  https://1password.com/downloads/command-line/

 

Then run the Workflow again.

 

You may close the terminal.

 

-------------------------------------------------------------

 

 

Here is the Alfred debugger output:

[18:02:13.251] Logging Started...

[18:02:51.694] 1Password[Script Filter] Queuing argument '(null)'

[18:02:51.710] 1Password[Script Filter] Script with argv '(null)' finished

[18:02:51.712] 1Password[Script Filter] { "items": [{

  "title": "Sign in and update items",

  "subtitle": "Your terminal will open with instructions",

  "arg": "update_items"

}] }

[18:02:56.624] 1Password[Script Filter] Processing complete

[18:02:56.626] 1Password[Script Filter] Passing output 'update_items' to Conditional

[18:02:56.627] 1Password[Conditional] Processing complete

[18:02:56.628] 1Password[Conditional] Passing output 'update_items' to Run Script

[18:02:56.638] 1Password[Run Script] Processing complete

[18:02:56.638] 1Password[Run Script] Passing output '/var/folders/mt/6hsg69gn461by0hg349zgz6c0000gn/T/tmp.7Yirk0rH' to Terminal Command

[18:02:57.414] 1Password[Terminal Command] Processing complete

[18:02:57.419] 1Password[Terminal Command] Passing output '/var/folders/mt/6hsg69gn461by0hg349zgz6c0000gn/T/tmp.7Yirk0rH' to Run Script

Edited by vitor
Removed big block of empty lines
Posted

The issue is that the 1Password command-line tool, op, is unable to create the configuration directory:

 

6 minutes ago, drpbier said:

cannot create directory "/Users/davidbier/.config/op" and the parent directories: mkdir /Users/davidbier/.config/op: permission denied

 

Can you (in the Terminal) /usr/local/bin/op signin --force?

Posted
53 minutes ago, vitor said:

The issue is that the 1Password command-line tool, op, is unable to create the configuration directory:

 

 

Can you (in the Terminal) /usr/local/bin/op signin --force?

Terminal says:

iMac:~ davidbier$ /usr/local/bin/op signin --force

[ERROR] 2022/07/21 19:16:23 cannot create directory "/Users/davidbier/.config/op" and the parent directories: mkdir /Users/davidbier/.config/op: permission denied

 

Posted

You’ll have to ask 1Password about it. It’s their tool having the issue, which as you can attest happens even outside the Workflow. I did a quick search online and haven’t found anyone else affected with that exact problem.

Posted
Just now, vitor said:

You’ll have to ask 1Password about it. It’s their tool having the issue, which as you can attest happens even outside the Workflow. I did a quick search online and haven’t found anyone else affected with that exact problem.

ok - thanks Vitor

Posted

When I do "Sign in and update items", Terminal starts but no window appears and nothing happens.

 

### Workflow version
2022.15

### Alfred version
5.0

### macOS version
12.4

### Architecture
i386

### Preferences
Dict {
logins_only = true
}

### 1Password version
8.8.0

### op version
In Workflow: 2.2.0
In /usr/local: 2.5.1

### Biometric unlock
NOT enabled

### Custom terminal feature
NOT enabled

### Launchd job
Loaded: - 0 com.alfredapp.1password
Installed

Posted
48 minutes ago, convivio said:

Terminal starts but no window appears


You mean the Terminal opens but does not show any window?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...