tamouse__ Posted August 15, 2019 Share Posted August 15, 2019 On 5/8/2019 at 5:13 AM, deanishe said: I don't think you're doing anything wrong. I suspect the instructions are out of date, as Homebrew has changed recently. Looking at the Homebrew recipe for lastpass-cli, it seems that both those options are now default, so you should only need to do: brew install lastpass-cli perhaps the README could be updated. Link to comment
fuorviatos Posted March 18, 2020 Share Posted March 18, 2020 (edited) Hi, I'm not sure if the worflow is still being used and supported. I cannot log in, with the error below. When I type "lplogin" nothing happens, there is no notification etc. I'm on a recent updated Catalina's macbook pro. Quote 15:47:48.506] Logging Started... [15:48:06.707] LastPass CLI[Keyword] Processing complete [15:48:06.711] LastPass CLI[Keyword] Passing output '' to Run Script [15:48:07.000] ERROR: LastPass CLI[Run Script] 2845:2846: syntax error: Oczekiwano: koniec linii. Znaleziono: „"”. (-2741) Would someone has an idea what's going on? Thanks a lot! Edited March 18, 2020 by fuorviatos Link to comment
RKo Posted April 8, 2020 Share Posted April 8, 2020 (edited) On 3/18/2020 at 3:50 PM, fuorviatos said: Hi, I'm not sure if the worflow is still being used and supported. I cannot log in, with the error below. When I type "lplogin" nothing happens, there is no notification etc. I'm on a recent updated Catalina's macbook pro. Would someone has an idea what's going on? Thanks a lot! I found what was causing the error for me. When you open the workflow: - click on the /usr/bin/osascript - change the last lines from if ("{query}" = "scriptlocationnotset") then tell application "Alfred 3" to search "lp " end if to: if ("{query}" = "scriptlocationnotset") then tell application "Alfred 4" to search "lp " end if - then it should work again. Edited April 8, 2020 by RKo Link to comment
deanishe Posted April 8, 2020 Share Posted April 8, 2020 31 minutes ago, RKo said: tell application "Alfred 4" to search "lp " Change this to tell application id "com.runningwithcrayons.Alfred" to search "lp " so it will continue to work with Alfred 5+. Better yet, if it's appropriate for the workflow, change the workflow to run an External Trigger instead of calling itself by keyword. That's much more reliable (a user might have changed the keyword or be using "lp" for something else as well). Link to comment
Ivo Posted June 24, 2020 Share Posted June 24, 2020 On 4/8/2020 at 2:34 PM, deanishe said: Change this to tell application id "com.runningwithcrayons.Alfred" to search "lp " so it will continue to work with Alfred 5+. Better yet, if it's appropriate for the workflow, change the workflow to run an External Trigger instead of calling itself by keyword. That's much more reliable (a user might have changed the keyword or be using "lp" for something else as well). This worked as a charm for me! arthurdapaz 1 Link to comment
arthurdapaz Posted September 30, 2020 Share Posted September 30, 2020 (edited) For the newbies like me that faced issues, for using Lastpass workflow within the latest version of Alfred, I merged two solutions pointed by the power users above. 1. the lastpass-cli tool (that supports the workflow) is now simple installed by this command on your terminal: brew install lastpass-cli 2. in Alfred preferences, replace the penultimate line of lplogin -> /usr/bin/osascript for the following line. tell application id "com.runningwithcrayons.Alfred" to search "lp " 2.1) this will make sure the script will work for all Alfred versions (at least in thesis) Edited September 30, 2020 by arthurdapaz underline fixing deanishe 1 Link to comment
glucklicher Posted November 2, 2020 Share Posted November 2, 2020 I can't get this work. How do I login? Where do I put my password in?! If I use "lplogin" and click Enter, nothing happens. jzadra 1 Link to comment
ad123 Posted November 9, 2020 Share Posted November 9, 2020 @glucklicher I can't get it to work either. "lplogin" and nothing happens... jzadra 1 Link to comment
bobvance Posted November 7, 2021 Share Posted November 7, 2021 Hello! I'm getting the below error in Terminal when I try to complete the following instruction: "brew install lastpass-cli". I'm intentionally only running "brew install lastpass-cli" instead of "brew install lastpass-cli --with-pinentry --with-doc" because I had this error as well. Any help would be appreciated! ==> Tapping homebrew/cask Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'... remote: Enumerating objects: 602484, done. remote: Counting objects: 100% (26/26), done. remote: Compressing objects: 100% (18/18), done. remote: Total 602484 (delta 12), reused 22 (delta 8), pack-reused 602458 Receiving objects: 100% (602484/602484), 269.20 MiB | 5.76 MiB/s, done. Resolving deltas: 100% (425946/425946), done. Tapped 3924 casks (4,005 files, 288.5MB). Warning: No available formula or cask with the name "lastpass-cli". ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching for a previously deleted formula (in the last month)... Error: No previously deleted formula found. ==> Searching taps on GitHub... Error: No formulae found in taps. Link to comment
Rexx Fernandez Posted February 2, 2022 Share Posted February 2, 2022 (edited) Hi Guys. Brand new user to Mac, and Alfred! I seem to have everything set up as per the instructions (all the terminal commands etc on my M1 Mac Mini). The last hurdle is the lplogin which i can't get past. I changed the "3" to "4" in the last line of the script as i am running Alfred 4. The first time i tried iplogin, i got a message asking me to "allow", which i did, but since then, now lplogin does nothing, no pop up, so i cannot log in Can anyone please advise me on what / where i can check? I've seem this come up in this thread, but i cant find a solution. Here is the debug log: [18:12:08.734] LastPass CLI[Keyword] Processing complete [18:12:08.734] LastPass CLI[Keyword] Passing output '' to Run Script [18:12:08.966] ERROR: LastPass CLI[Run Script] 2637:2649: execution error: The variable lpass_binary is not defined. (-2753) Many thanks, Rexx. Edited February 2, 2022 by Rexx Fernandez Link to comment
jzadra Posted May 3, 2022 Share Posted May 3, 2022 I've just installed this workflow, but any of the initial set up commands to set my email, set timeout, and login do not produce any response (neither an error nor a confirmation). When I then try to retrieve a password, it says I'm not logged in. I have lastpass-cli version 1.3.3_1, Alfred 4.6.5, and installed Capture::Tiny using 'lib::local'. I'm on Monterey 12.3.1. I previously had lastpass-cli installed and working in iTerm. In case the issue was the install arguments suggested in the setup guide for the workflow, I uninstalled it and tried installing with the arguements, but I was unable to install lastpass cli with the arguments `--with-pinentry --with-doc`, as both generated errors: Error: invalid option: --with-pinentry Error: invalid option: --with-doc I've also tried logging in using the terminal (successfully) and then using the workflow, but it still reports not logged in. Link to comment
jzadra Posted May 3, 2022 Share Posted May 3, 2022 THIS WORKFLOW IS DEFUNCT. AN UPDATED FORK IS AVAILABLE. For anyone else who stumbles up on this thread trying to get this workflow to work, don't bother. It is defunct and not maintained. A different author forked it and it works out of the box with Alfred 4: http://www.packal.org/workflow/lastpass-search needle, vitor and pshavzin 3 Link to comment
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