Richard Kaplan Posted October 9, 2023 Posted October 9, 2023 Solved.. I had to install Automation Tasks on the laptop Workflow works great now- very nice
blgentry Posted October 15, 2023 Posted October 15, 2023 Hello, I would like to suggest that the SETUP instructions include verifying that Automation Tasks are installed. Yesterday and today I spent about an hour trying to make this work. I did a lot of troubleshooting steps, but I was unaware of Automation Tasks as being a "thing" in Alfred and they were not mentioned in the setup instructions. Today I found this thread and started reading. I'm glad that I got impatient and went to the end because my answer was there! Now that I installed Automation Tasks, the 1password integration works as I expect it to. Previously it would not show any of my entries/logins. Thanks for the workflow. I think I'll be using it a lot. Brian. Rad and Richard Kaplan 2
rnavagamuwa Posted October 27, 2023 Posted October 27, 2023 I have recently installed Alfred and enabled the powerpack. I'm trying to integrate it with 1Password, and I have installed the 1Password CLI as well. op vault list command works perfectly, and that's how I verified that the CLI is properly installed. No matter what I do, when I try to sign in to 1Password via Alfred, I get the Missing the CLI Tool error. Refer to the screenshot below. So far I have restarted the computer. Reinstalled 1password workflow But nothing worked. Can someone point me in the right direction here?
Stephen_C Posted October 27, 2023 Posted October 27, 2023 Welcome to the forum. Just a couple of useful tips: If you have a problem with a workflow it's best to post in the thread for that workflow. That way the developer of the workflow will see it easily. You should open the debugger, run the workflow and then copy and paste the output into a post. That helps people to analyse the exact problem. Stephen
vitor Posted October 27, 2023 Author Posted October 27, 2023 @rnavagamuwa You skipped the most important step, which is to provide a diagnostic.
rnavagamuwa Posted October 27, 2023 Posted October 27, 2023 @Stephen_CThank you, and I'm sorry that I didn't follow the correct steps. Please excuse me as this is my first time posting here. @vitorPlease refer to the below debugger output. [4:19:27.367 PM] Logging Started... [4:19:33.505 PM] 1Password[Script Filter] Queuing argument '(null)' [4:19:33.523 PM] 1Password[Script Filter] Script with argv '(null)' finished [4:19:33.528 PM] 1Password[Script Filter] { "rerun": 0.1, "items": [{ "variables": { "action": "update_items" }, "title": "Sign in and update items", "arg": "update_items", "icon": { "path": "composite_icon.png" } }] } [4:19:33.631 PM] 1Password[Script Filter] Queuing argument '(null)' [4:19:33.718 PM] 1Password[Script Filter] Script with argv '(null)' finished [4:19:33.727 PM] 1Password[Script Filter] { "rerun": 0.1, "items": [{ "variables": { "action": "update_items" }, "title": "Sign in and update items", "arg": "update_items", "icon": { "path": "composite_icon.png" } }] } [4:19:33.821 PM] 1Password[Script Filter] Queuing argument '(null)' [4:19:33.829 PM] 1Password[Script Filter] Script with argv '(null)' finished [4:19:33.830 PM] 1Password[Script Filter] { "rerun": 0.1, "items": [{ "variables": { "action": "update_items" }, "title": "Sign in and update items", "arg": "update_items", "icon": { "path": "composite_icon.png" } }] } [4:19:33.938 PM] 1Password[Script Filter] Queuing argument '(null)' [4:19:33.949 PM] 1Password[Script Filter] Script with argv '(null)' finished [4:19:33.950 PM] 1Password[Script Filter] { "rerun": 0.1, "items": [{ "variables": { "action": "update_items" }, "title": "Sign in and update items", "arg": "update_items", "icon": { "path": "composite_icon.png" } }] } [4:19:34.057 PM] 1Password[Script Filter] Queuing argument '(null)' [4:19:34.075 PM] 1Password[Script Filter] Script with argv '(null)' finished [4:19:34.078 PM] 1Password[Script Filter] { "rerun": 0.1, "items": [{ "variables": { "action": "update_items" }, "title": "Sign in and update items", "arg": "update_items", "icon": { "path": "composite_icon.png" } }] } [4:19:34.179 PM] 1Password[Script Filter] Queuing argument '(null)' [4:19:34.189 PM] 1Password[Script Filter] Script with argv '(null)' finished [4:19:34.190 PM] 1Password[Script Filter] { "rerun": 0.1, "items": [{ "variables": { "action": "update_items" }, "title": "Sign in and update items", "arg": "update_items", "icon": { "path": "composite_icon.png" } }] } [4:19:34.296 PM] 1Password[Script Filter] Queuing argument '(null)' [4:19:34.381 PM] 1Password[Script Filter] Script with argv '(null)' finished [4:19:34.387 PM] 1Password[Script Filter] { "rerun": 0.1, "items": [{ "variables": { "action": "update_items" }, "title": "Sign in and update items", "arg": "update_items", "icon": { "path": "composite_icon.png" } }] } [4:19:34.485 PM] 1Password[Script Filter] Queuing argument '(null)' [4:19:34.496 PM] 1Password[Script Filter] Script with argv '(null)' finished [4:19:34.501 PM] 1Password[Script Filter] { "rerun": 0.1, "items": [{ "variables": { "action": "update_items" }, "title": "Sign in and update items", "arg": "update_items", "icon": { "path": "composite_icon.png" } }] } [4:19:34.606 PM] 1Password[Script Filter] Queuing argument '(null)' [4:19:34.616 PM] 1Password[Script Filter] Script with argv '(null)' finished [4:19:34.618 PM] 1Password[Script Filter] { "rerun": 0.1, "items": [{ "variables": { "action": "update_items" }, "title": "Sign in and update items", "arg": "update_items", "icon": { "path": "composite_icon.png" } }] } [4:19:34.719 PM] 1Password[Script Filter] Queuing argument '(null)' [4:19:34.738 PM] 1Password[Script Filter] Script with argv '(null)' finished [4:19:34.742 PM] 1Password[Script Filter] { "rerun": 0.1, "items": [{ "variables": { "action": "update_items" }, "title": "Sign in and update items", "arg": "update_items", "icon": { "path": "composite_icon.png" } }] } [4:19:34.843 PM] 1Password[Script Filter] Queuing argument '(null)' [4:19:34.924 PM] 1Password[Script Filter] Script with argv '(null)' finished [4:19:34.933 PM] 1Password[Script Filter] { "rerun": 0.1, "items": [{ "variables": { "action": "update_items" }, "title": "Sign in and update items", "arg": "update_items", "icon": { "path": "composite_icon.png" } }] } [4:19:35.026 PM] 1Password[Script Filter] Queuing argument '(null)' [4:19:35.104 PM] 1Password[Script Filter] Script with argv '(null)' finished [4:19:35.113 PM] 1Password[Script Filter] { "rerun": 0.1, "items": [{ "variables": { "action": "update_items" }, "title": "Sign in and update items", "arg": "update_items", "icon": { "path": "composite_icon.png" } }] } [4:19:35.207 PM] 1Password[Script Filter] Queuing argument '(null)' [4:19:35.223 PM] 1Password[Script Filter] Script with argv '(null)' finished [4:19:35.229 PM] 1Password[Script Filter] { "rerun": 0.1, "items": [{ "variables": { "action": "update_items" }, "title": "Sign in and update items", "arg": "update_items", "icon": { "path": "composite_icon.png" } }] } [4:19:35.329 PM] 1Password[Script Filter] Queuing argument '(null)' [4:19:35.337 PM] 1Password[Script Filter] Script with argv '(null)' finished [4:19:35.339 PM] 1Password[Script Filter] { "rerun": 0.1, "items": [{ "variables": { "action": "update_items" }, "title": "Sign in and update items", "arg": "update_items", "icon": { "path": "composite_icon.png" } }] } [4:19:35.444 PM] 1Password[Script Filter] Queuing argument '(null)' [4:19:35.461 PM] 1Password[Script Filter] Script with argv '(null)' finished [4:19:35.466 PM] 1Password[Script Filter] { "rerun": 0.1, "items": [{ "variables": { "action": "update_items" }, "title": "Sign in and update items", "arg": "update_items", "icon": { "path": "composite_icon.png" } }] } [4:19:35.567 PM] 1Password[Script Filter] Queuing argument '(null)' [4:19:35.584 PM] 1Password[Script Filter] Script with argv '(null)' finished [4:19:35.589 PM] 1Password[Script Filter] { "rerun": 0.1, "items": [{ "variables": { "action": "update_items" }, "title": "Sign in and update items", "arg": "update_items", "icon": { "path": "composite_icon.png" } }] } [4:19:35.691 PM] 1Password[Script Filter] Queuing argument '(null)' [4:19:35.702 PM] 1Password[Script Filter] Script with argv '(null)' finished [4:19:35.708 PM] 1Password[Script Filter] { "rerun": 0.1, "items": [{ "variables": { "action": "update_items" }, "title": "Sign in and update items", "arg": "update_items", "icon": { "path": "composite_icon.png" } }] } [4:19:35.801 PM] 1Password[Script Filter] Processing complete [4:19:35.808 PM] 1Password[Script Filter] Passing output 'update_items' to Junction [4:19:35.810 PM] 1Password[Junction] Processing complete [4:19:35.811 PM] 1Password[Junction] Passing output 'update_items' to Automation Task [4:19:35.813 PM] 1Password[Automation Task] Running task 'Is App Running?' with arguments ( "com.1password.1password" ) [4:19:35.869 PM] 1Password[Automation Task] Processing complete [4:19:35.872 PM] 1Password[Automation Task] Passing output 'true' to Conditional [4:19:35.873 PM] 1Password[Conditional] Processing complete [4:19:35.873 PM] 1Password[Conditional] Passing output 'true' to Conditional [4:19:35.874 PM] 1Password[Conditional] Processing complete [4:19:35.874 PM] 1Password[Conditional] Passing output 'true' to Run Script [4:19:35.974 PM] ERROR: 1Password[Run Script] env: op: No such file or directory ./1password.js: execution error: Error: The newest version of the 1Password CLI tool needs to be installed: https://1password.com/downloads/command-line/ (-2700) [4:19:35.982 PM] 1Password[Run Script] Processing complete [4:19:35.983 PM] 1Password[Run Script] Passing output 'MISSING_OP_PATH' to Conditional [4:19:35.984 PM] 1Password[Conditional] Processing complete [4:19:35.985 PM] 1Password[Conditional] Passing output 'MISSING_OP_PATH' to Run Script [4:19:36.016 PM] ERROR: 1Password[Run Script] env: op: No such file or directory ./1password.js: execution error: Error: The newest version of the 1Password CLI tool needs to be installed: https://1password.com/downloads/command-line/ (-2700) [4:19:36.024 PM] 1Password[Run Script] Processing complete [4:19:36.024 PM] 1Password[Run Script] Passing output 'MISSING_OP_PATH' to Conditional [4:19:36.025 PM] 1Password[Conditional] Processing complete [4:19:36.026 PM] 1Password[Conditional] Passing output 'MISSING_OP_PATH' to Dialog Conditional
vitor Posted October 27, 2023 Author Posted October 27, 2023 The debugger output is important. But the diagnostic, as requested, is imperative. Run !1pdiagnostic to get it.
godbout Posted October 28, 2023 Posted October 28, 2023 back with the same issue reported as above, and that i reported a few weeks/months ago. Workflow stuck at updating items. will report if i find a solution. it's been pretty unstable for me so far.
rnavagamuwa Posted October 28, 2023 Posted October 28, 2023 @vitor I ran the !1pdiagnostic command on the terminal, but it doesn't seem to be working. It executes a previous command I ran and then gives the below zsh: command not found: pdiagnostic
vitor Posted October 28, 2023 Author Posted October 28, 2023 46 minutes ago, rnavagamuwa said: I ran the !1pdiagnostic command on the terminal Run it in Alfred, not the Terminal.
rnavagamuwa Posted October 29, 2023 Posted October 29, 2023 19 hours ago, vitor said: Run it in Alfred, not the Terminal. @vitor Here you go ### Workflow version 2023.11 ### Alfred version 5.1.4 ### macOS version 14.0 ### Architecture arm64 ### Preferences Default ### 1Password version 8.10.18 ### op version NOT installed ### Launchd job Loaded: - 0 com.alfredapp.vitor.1password Installed
vitor Posted October 29, 2023 Author Posted October 29, 2023 On 10/27/2023 at 7:45 AM, rnavagamuwa said: I have installed the 1Password CLI as well. How? Where exactly is it installed? The workflow isn’t finding it so it’s not in a standard location. It has to be in one of the standard path locations.
rnavagamuwa Posted October 29, 2023 Posted October 29, 2023 15 minutes ago, vitor said: How? Where exactly is it installed? The workflow isn’t finding it so it’s not in a standard location. It has to be in one of the standard path locations. @vitorit's installed in /usr/local/homebrew/bin/op. I tried adding it manually to PATH as well. But that is also not being picked up by Alfred.
vitor Posted October 29, 2023 Author Posted October 29, 2023 3 hours ago, rnavagamuwa said: it's installed in /usr/local/homebrew/bin/op If that truly is the path, your Homebrew installation is atypical and not supported by Homebrew (the project is explicitly adamant that anything other than the standard install locations is unsupported). That location is also not covered by the 1Password instructions. For both those reasons it’s not supported by the workflow either. Install the CLI with the manual installation steps on the official page to correct it.
rnavagamuwa Posted October 30, 2023 Posted October 30, 2023 8 hours ago, vitor said: If that truly is the path, your Homebrew installation is atypical and not supported by Homebrew (the project is explicitly adamant that anything other than the standard install locations is unsupported). That location is also not covered by the 1Password instructions. For both those reasons it’s not supported by the workflow either. Install the CLI with the manual installation steps on the official page to correct it. Thanks @vitor. The manual installation helped
Dan Black Posted November 1, 2023 Posted November 1, 2023 Hi. I've been using the 1Password Alfred workflow for a while now - thanks for making it available. However, after a recent update it's stopped working. I can bring up a 1Password login on Alfred, but when I hit return, nothing happens. The 1Password Firefox extension still works, but the Alfred workflow won't pass a login to the browser. Is there something I need to update? ### Workflow version 2023.11 ### Alfred version 5.1.4 ### macOS version 13.6.1 ### Architecture arm64 ### Preferences Dict { logins_only = true } ### 1Password version 8.10.18 ### op version 2.3.0 ### Launchd job Loaded: - 0 com.alfredapp.vitor.1password Installed
vitor Posted November 2, 2023 Author Posted November 2, 2023 Please include the debugger output when running the action.
Dan Black Posted November 2, 2023 Posted November 2, 2023 [12:38:59.514] 1Password[Script Filter] Processing complete [12:38:59.557] 1Password[Script Filter] Passing output '' to Junction [12:38:59.558] 1Password[Junction] Processing complete [12:38:59.559] 1Password[Junction] Passing output '' to Automation Task [12:38:59.559] 1Password[Automation Task] Running task 'Is App Running?' with arguments ( "com.1password.1password" ) [12:38:59.563] 1Password[Automation Task] Processing complete [12:38:59.563] 1Password[Automation Task] Passing output 'true' to Conditional [12:38:59.567] 1Password[Conditional] Processing complete [12:38:59.567] 1Password[Conditional] Passing output 'true' to Conditional
vitor Posted November 2, 2023 Author Posted November 2, 2023 That output looks incomplete. Either way, all the workflow does in that situation is open the link in the browser and then it’s out of its hands, it’s up to the 1Password extension to do the rest. Make sure you have the data up to date by force updating items first.
Scuba629 Posted November 9, 2023 Posted November 9, 2023 I found an entry of "osascript" in my Mac Login Items "Allow in the Background" section (System Settings > General > Login Items > "Allow in the Background"). This seemed to have been created by using the 1Password Workflow. The only thing I can figure is I see it listed at the top of the 1password.js script. #!/usr/bin/osascript -l JavaScript Now maybe I did something different than the rest as I installed the op.pkg vs using the zip file and just moving it in place. I also didn't give Alfred full disk access either. I don't love that osascript is listed as a background task but wonder if their is anyway around it or I might have done something different than most? Side Note: How secure and private is this workflow? I tried to read and understand what the JavaScript was doing and I can't see anything questionable. Do other workflows have access to this data too? It doesn't seem like they are "sand boxed" so maybe a bad workflow could steal passwords and such? I'm very new to Alfred and trying to get the basics down with 1Password being a major component of that. Thanks in advance
vitor Posted November 9, 2023 Author Posted November 9, 2023 Welcome @Scuba629, The fact that the script is built with osascript bears no relation to the background process. But it is possible that what you’re seeing is from the workflow. You can go into the Workflow’s Configuration and untick Detect Changes (bottom option) then run in Alfred :1pextras → Reset Workflow to remove the item. However, this means that whenever you make a change in 1Password, you’ll have to manually run :1pextras → Force Update Items. With the item activated, changes to 1Password items are detected and the regular 1p results put an option to Update Items at the top. That’s what it is for, and it’s very efficient as it’s using standard macOS features (launchd). Unfortunately Apple does not provide a way to be more explicit with this method. If possible, I’d have the option in Login Items say exactly what it is (instead of osascript), why it’s there, and how it works. As for security and privacy: The workflow is official from the Alfred team (see other official workflows on the Gallery page). It has no external dependencies apart from the tool by 1Password themselves. All the workflow’s code is available for auditing, as you saw. It avoids sensitive data at all costs and doesn’t keep anything that the previous integration provided by 1Password 7 didn’t. Your passwords are never stored, which is why you’re asked to authenticate when you copy them (how long the session lasts is managed by 1Password’s tool). Not even usernames are saved, out of an abundance of caution. If you have any lingering specific questions, please don’t hesitate to ask.
Scuba629 Posted November 9, 2023 Posted November 9, 2023 @vitorThanks for the quick reply. One followup with the copy of username/passwords. Is the data just placed in the clipboard? Or does the workflow handle it in someway? And im assuming if I never ask for the workflow to copy them then they are never gathered? Thanks again for a great workflow.
vitor Posted November 9, 2023 Author Posted November 9, 2023 2 minutes ago, Scuba629 said: One followup with the copy of username/passwords. Is the data just placed in the clipboard? Or does the workflow handle it in someway? Yes, they are just copied, and in a special way to be even more private. Do it and you’ll notice they won’t even be saved to Alfred’s Clipboard History, unless you have specifically turned off the option to not save Concealed data in the Clipboard History’s Advanced tab. The information is also not passed between objects so it doesn’t even show up in the debugger. Everything is done in a way to ask the data from the 1Password command-line tool, process it the way you want, then promptly discard it. The workflow deals with the data as little as possible. 4 minutes ago, Scuba629 said: And im assuming if I never ask for the workflow to copy them then they are never gathered? Correct.
YusufGandhi Posted November 24, 2023 Posted November 24, 2023 Hi, I got a question. My workflow requires a lot of OTP. My default authenticator is Authy and I found out that there is an unofficial Authy workflow (not listed in the Alfred Gallery). And I am very happy with that. I can search my 2FA and immediately copy it and also paste it to the frontmost app using Alfred's Copy to Clipboard object. However, I've recently migrated to 1password (solely because it has Alfred official support!). And migrated some of my 2FAs there as well. Now I don't have to keep separate apps for my password manager and authenticator. But I'm wondering is there any way to copy and immediately to paste the OTP to the frontmost app, just like the Copy to Clipboard object behaviour and the unofficial Authy workflow above? This will save one less keystroke (the paste: ⌘ + V). Seems like not much, but if you have to do this a lot in one day, this can save a lot of time for me. Thanks!
Prem Posted November 26, 2023 Posted November 26, 2023 Hi, first, thanks to @vitor for this super-useful workflow. During installation, I faced an issue where I'm unable to execute 1Password searches via Alfred; the only visible option is 'Updating Items'. Diagnostics and logs suggest a potential issue with workflow loading, indicated by 'LaunchJob not loaded not installed'. Any advice or solutions would be greatly appreciated. !1pdiagnostic output ### Workflow version 2023.12 ### Alfred version 5.1.4 ### macOS version 14.1.1 ### Architecture i386 ### Preferences Dict { } ### 1Password version 8.10.20 ### op version 2.18.0 ### Launchd job NOT loaded NOT installed Debug log [17:13:55.443] 1Password[Script Filter] Script with argv '(null)' finished [17:13:55.455] 1Password[Script Filter] {"rerun":0.1,"items":[{"title":"Updating items…","subtitle":"Will take a few seconds","valid":false}]} [17:13:55.543] 1Password[Script Filter] Queuing argument '(null)' [17:13:55.559] 1Password[Script Filter] Script with argv '(null)' finished [17:13:55.561] 1Password[Script Filter] {"rerun":0.1,"items":[{"title":"Updating items…","subtitle":"Will take a few seconds","valid":false}]} [17:13:55.659] 1Password[Script Filter] Queuing argument '(null)'
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now