Thanks so much for creating this Vitor. Work flow life saver – working really well for me on OS 11.6 and Alfred 4.5.1.
In case anyone else encounters this error:
[16:48:04.688] ERROR: Google Drive[Run Script] /Users/MyName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.1C049923-5A50-4A1B-BE98-4BC2A04C2F68/rebuild_cache:26:in 'atime': No such file or directory @ rb_file_s_atime - /Volumes/GoogleDrive/My Drive/<various subfolders>/r_m_24_d_2*_f127v.tif (Errno::ENOENT)
My guess is that it was some sort of sync error already occurring in Google Drive (maybe to do with the asterisk in the filename) – the file was visible on google drive but hadn't appeared in the streamed folder on my mac. I downloaded the file to the desktop, renamed it without the suspect symbol, deleted the old version from the google drive online to be sure and then added it back into the streamed directory so it resynced. After that, all of the steps in the script setup worked fine (about 25 mins to index 1.33 TB, in case that helps anyone as a time guide).