alfredapp / google-drive-workflow

Alfred Workflow for Google Drive
BSD 3-Clause "New" or "Revised" License
170 stars 8 forks source link

Google Drive[Run Script] Google Drive path does not exist! #16

Closed mac137 closed 2 years ago

mac137 commented 2 years ago

Workflow version

2022.1

Alfred version

4.6.1

macOS version

12.1

Debugger output

[21:57:34.357] Google Drive[Script Filter] {"items": [
      {
        "title": "Install Google Drive launchd service",
        "subtitle": "Periodically rebuilds the cache",
        "arg": "install"
      },
    ]}
[21:57:35.886] Google Drive[Script Filter] Processing complete
[21:57:35.887] Google Drive[Script Filter] Passing output 'install' to Run Script
[21:57:35.906] Google Drive[Run Script] Processing complete
[21:57:35.911] Google Drive[Run Script] Passing output 'BUILD_CACHE' to Conditional
[21:57:35.912] Google Drive[Conditional] Processing complete
[21:57:35.913] Google Drive[Conditional] Passing output 'BUILD_CACHE' to Run Script
[21:57:36.056] ERROR: Google Drive[Run Script] Google Drive path does not exist!
[21:57:36.062] Google Drive[Run Script] Processing complete
[21:57:36.063] Google Drive[Run Script] Passing output 'PATH_ERROR' to Run Script
[21:57:36.063] Google Drive[Run Script] Passing output 'PATH_ERROR' to Conditional
[21:57:36.064] Google Drive[Conditional] Processing complete
[21:57:36.064] Google Drive[Conditional] Passing output 'PATH_ERROR' to Post Notification
[21:57:36.065] Google Drive[Post Notification] Processing complete
[21:57:36.065] Google Drive[Post Notification] Passing output 'PATH_ERROR' to Play Sound
[21:57:36.574] Google Drive[External] Processing complete
[21:57:36.576] Google Drive[External] Passing output '' to Arg and Vars
[21:57:36.577] Google Drive[Arg and Vars] Processing complete
[21:57:36.578] Google Drive[Arg and Vars] Passing output '' to Run Script
[21:57:36.673] ERROR: Google Drive[Run Script] Google Drive path does not exist!
[21:57:36.683] Google Drive[Run Script] Processing complete
[21:57:36.684] Google Drive[Run Script] Passing output 'PATH_ERROR' to Run Script
[21:57:36.684] Google Drive[Run Script] Passing output 'PATH_ERROR' to Conditional
[21:57:36.684] Google Drive[Conditional] Processing complete
[21:57:36.684] Google Drive[Conditional] Passing output 'PATH_ERROR' to Post Notification
[21:57:36.685] Google Drive[Post Notification] Processing complete
[21:57:36.685] Google Drive[Post Notification] Passing output 'PATH_ERROR' to Play Sound

More details

As the logs show: [21:57:36.673] ERROR: Google Drive[Run Script] Google Drive path does not exist!

any ideas on how to fix it?

mac137 commented 2 years ago

I found a way out!

In Finder, open your Google Drive then Go -> Enclosing Folder. Right click on your Google Drive -> Services -> New Terminal at Folder'. Then type in the terminal 'pwd', and copy the displayed path to this Alfred Google Drive workflow's Environment Variablegoogle_drive_path`.

Then when you try to find anything with option+space -> gd any_file it displays Please be patient. Depending on how many files you have, it can take a while.

vitorgalvao commented 2 years ago

Yes, that’s the way to do it. It’s in the instructions. Glad you got it working.