stuartcryan / lastpass-alfred-workflow

Simple Lastpass Workflow for Alfred
GNU General Public License v2.0
224 stars 69 forks source link

Error when trying to login #72

Open wiggins-philip opened 2 years ago

wiggins-philip commented 2 years ago

[09:54:34.968] LastPass CLI[[Keyword](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EB66CDE-DA23-47C9-B87D-34078DDC8826%3E01DFFE0F-13AB-4E19-AC39-8E2177548224)] Passing output '' to [Run Script](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EB66CDE-DA23-47C9-B87D-34078DDC8826%3ED21298B3-763D-48F9-A804-C3B06D3B70E7) [09:54:35.117] ERROR: LastPass CLI[[Run Script](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EB66CDE-DA23-47C9-B87D-34078DDC8826%3ED21298B3-763D-48F9-A804-C3B06D3B70E7)] 2845:2846: syntax error: Expected end of line but found “"”. (-2741)

ascandroli commented 1 year ago

I started having a similar issue with login last week. For some still unknown reason current_path started to include quotes. I was able to work around the issue by removing the quotes from the current_path. This is the code I used:

tell application "Finder"
    set current_path to container of (path to me) as alias
    set current_path_dequoted to items 2 thru -2 of current_path as string
end tell
set current_unix_path to POSIX path of current_path_dequoted