vitor Posted May 23, 2022 Author Share Posted May 23, 2022 @jgacitua I know what’s happening: I’m telling Finder to do the move, but it copies because it is a network drive. I’m ambivalent as to the best solution. I can have the Universal Action copy the files then send the originals to the trash (better than outright removing in case something goes wrong with the copy, though it may lead to confusion) but that would only work one way because when using Alfred to move out of that directory, it would still copy. The other option is to remove the option to move, to make the behaviour clear. I have the code working, but need to have a think about what’s best / least surprising. Link to comment
Textdriven Posted May 25, 2022 Share Posted May 25, 2022 It seems after a recent Google Drive app update (or maybe even macOS) the path to my drives have changed to... /Users/username/Library/CloudStorage/GoogleDrive-mygoogleemail@gmail.com There is nothing at /Volumes/GoogleDrive/ anymore. Just thought it worth noting as I had to update my environment variable and rebuild the cache. jgacitua 1 Link to comment
hb1 Posted May 25, 2022 Share Posted May 25, 2022 On 5/19/2022 at 11:51 AM, vitor said: If you delete it, the Workflow will likely start working again. But try just rebooting, first. Please let me know the results, because even if it’s fixed by rebooting or removing, it’ll be a clue. Removing the terminal customizations solved it. It was actually in zshenv, I forgot Catalina changed that by making zsh the default shell and zshenv is one of the start-up files. The workflow was working fine with all these settings for quite a while, but whatever. I'm going to file this under "Be happy it's working and don't ask any questions." vitor 1 Link to comment
christianmagill Posted May 27, 2022 Share Posted May 27, 2022 @vitor I see in the Google Drive release notes that they have added File Provider support as of May 12th. Would this allow for using the default Spotlight indexing again? https://support.google.com/a/answer/7577057?hl=en Link to comment
vitor Posted May 27, 2022 Author Share Posted May 27, 2022 11 hours ago, christianmagill said: Would this allow for using the default Spotlight indexing again? Yes! Make sure ~/Library/CloudStorage is in Alfred’s Search Scope and try it. Link to comment
christianmagill Posted May 27, 2022 Share Posted May 27, 2022 6 hours ago, vitor said: Yes! Make sure ~/Library/CloudStorage is in Alfred’s Search Scope and try it. Doesn't look like that worked for me.The path was already in my search scope, but items from Google Drive don't show up. Link to comment
vitor Posted May 27, 2022 Author Share Posted May 27, 2022 (edited) Are you sure you’re already on that version? Does Spotlight find the files? Edited June 9, 2022 by vitor Fix typo Link to comment
christianmagill Posted May 29, 2022 Share Posted May 29, 2022 (edited) On 5/27/2022 at 6:08 PM, vitor said: Are you sure you’re already on that version?Does Spotlight find the files? Yes, I'm on 58.0.3.0 (Apple Silicon) - Monterey 12.3.1 Spotlight doesn't show the files either unfortunately. I've also tried uninstalling, removing Application Support files and reinstalling, but still no dice. Searching for the ~/Library/CloudStorage path you mention, it does not exist. Edited May 30, 2022 by christianmagill Link to comment
mishamsk Posted June 2, 2022 Share Posted June 2, 2022 @christianmagill judging from the docs we'll have to wait until a pop-up comes (so it is still rolling out). But also looking at the bottom list, it seems that things are changing for worse. Up until now there was hope that they'll just fix what they had (and it was an easy fix btw, someone on stack overflow troubleshooted spotlight issues and pinpointed the problem). Now, we are loosing the ability to search the whole drive. And I am not even sure that @vitor's plugin will help. Not familiar with FileProvider API, but the text reads as if metadata will not be available for all cloud files and it is managed by MacOS... Link to comment
ftab Posted June 29, 2022 Share Posted June 29, 2022 Hi, I was using the workflow for two accounts simultaneously, and it was great. Suddenly, one of the accounts stopped responding. I understand I can use google_drive_path but I am not sure what that means - When I used this prompt in alfred, it doesn't work. Can you please give me more information? Link to comment
vitor Posted June 29, 2022 Author Share Posted June 29, 2022 12 minutes ago, ftab said: I understand I can use google_drive_path but I am not sure what that means The second post explains the process. Link to comment
ftab Posted July 12, 2022 Share Posted July 12, 2022 This has happened twice till now: I am using Alfred to access two different Google Drive accounts on the same computer. Suddenly, Alfred is only able to see and search one of them, and not the other (Both times it ignores the same account). Any reason why this is happening, and what's a quick solution? Link to comment
vitor Posted July 12, 2022 Author Share Posted July 12, 2022 (edited) 40 minutes ago, ftab said: Any reason why this is happening Probably due to the new behaviour in Google Drive. The solution is to no longer add both drive paths but instead add the folder which contains them. If you want to ignore some, add them to the ignores list (use the unique string in the name for matching). In the Alfred 5 version of the Workflow, that will be the supported method. Edited July 12, 2022 by vitor Link to comment
vitor Posted July 13, 2022 Author Share Posted July 13, 2022 Updated to 2022.13.Use Alfred 5 GUI user configuration.Use Alfred 5 GUI Dialog box for diagnostics.Ignore list is now new-line separated.No longer allow multiple paths, to simplify path setting and more readily support Linked Shared Folders. If you have multiple Drives and want to ignore some, add the root to the Google Drive Path and the ones you wish to not see to the Ignore List.Only try to auto-refresh if Alfred is open.Hotkeys for gd and gdf.Remove update conditional. Henry31 1 Link to comment
jern Posted July 28, 2022 Share Posted July 28, 2022 Hello Everyone and specifically @vitor who appears to be the resident expert in this area! Many thanks in advance for help here. I new here so apologies in advance if this is a dumb question. I'm trying to use Alfred to search Google Drive for desktop. I followed the older instructions to setup the workflow which kinda works but it is spotty (not 100% sure I have it setup completely correctly). Based on what I'm reading in this thread it sounds like there may have been some very recent developments which allow for Alfred to use default Spotlight to indexing again. But, to make this work ~/Library/CloudStorage needs to be added to Alfred's search scope. I understand how to add a file path to Alfred's search scope but where I'm stuck is this particular file path (~/Library/CloudStorage) does not seem to exist on my computer? All help is greatly appreciated. Link to comment
vitor Posted July 29, 2022 Author Share Posted July 29, 2022 Welcome @jern, It’s not yet clear wether that will work. ~ represents your home folder. So (e.g.) /Users/jern/Library/CloudStorage. But you might not yet be on that version of Google Drive. If you need help with the Workflow, please state exactly what’s happening and provide the diagnostic. Link to comment
jern Posted August 2, 2022 Share Posted August 2, 2022 Thanks Vitor! Really appreciate the response. After giving it a few days to settle in the workflow seems to be performing better so for now I'm going to give this a go. But, may come back with questions if I hit additional snags. Thank you again. You're support and responsiveness is greatly appreciated! vitor 1 Link to comment
Trey S Posted August 3, 2022 Share Posted August 3, 2022 (edited) Not sure why. it's saying the Volume does not exist. I have two accounts set up on this computer. Could this the problem? ### Workflow version 2022.16 ### Alfred version 5.0.1 ### macOS version 12.5 ### Architecture i386 ### Preferences Default ### Full Disk Access Granted ### Google drive path Does NOT Exist: /Volumes/GoogleDrive ### Cache dir Files NOT present ### Cache file Does NOT exist ### Temporary cache Does NOT exist ### Build progress NOT running ### Launchd job Loaded: - 0 com.alfredapp.googledrive Installed Edited August 3, 2022 by Trey S Link to comment
vitor Posted August 4, 2022 Author Share Posted August 4, 2022 Welcome @Trey S, 8 hours ago, Trey S said: I have two accounts set up on this computer. Could this the problem? Unlikely. A lot of people use the Workflow with multiple accounts, they are specifically supported. Follow the link to confirm the location. Link to comment
Alpha Posted August 10, 2022 Share Posted August 10, 2022 What Local Drive file path should I tell Google Drive to mirror files in order to use command "in" , Please suggest. I have researched and understand that Alfred Searching cannot cover file path of Google Drive for Desktop Also I have already installed the Vitor's google drive workflow and currently use command GD, GDF But I cannot use "in" command to search text in excel files located in Google Drive. However, I tried Mirroring Clould file to be stored in local drive and hope that I can use "in" like using with file stored in my mac Google drive shows option to mirror file into local drive as file path = /Users/name/My Drive After done mirroring, I still cannot use "in" command , Am I missing anything here ? Link to comment
vitor Posted August 10, 2022 Author Share Posted August 10, 2022 (edited) @Alpha The Workflow creates its own cache and does not add the contents of files. That would make it potentially massive. You can’t use in with it, you have to use the Workflow’s own commands. With mirroring it might be possible, it depends if Spotlight indexes the files then. It should, but the situation with Google Drive is weird enough that it might not. Either way, you’d have to select the option (it’s not in your screenshot) and wait for the indexing to happen. Edited August 10, 2022 by vitor Link to comment
Alpha Posted August 10, 2022 Share Posted August 10, 2022 Thanks for your reply @vitor Google drive shows option to mirror file into local drive as file path = /Users/name/My Drive I still cannot work with "in" command (after lots of attemps & restarts), Suppose the Spotlight do not index the files, Mind you suggest any other Local drive file path that will possibly work with "in" ? I will go ahead to change mirroring folder in GG drive settings. Link to comment
vitor Posted August 10, 2022 Author Share Posted August 10, 2022 If Spotlight indexes the mirrored files, the folder you have now is as good as can be. You can try forcing a Spotlight reindex (Alfred Preferences → Advanced → Rebuild macOS Metadata) but can’t say for sure if that’ll help. I will be slow to finish and Spotlight will consume a fair bit of resources, so make sure you’re plugged in to an outlet. While it’s finishing, you won’t be able to find any file (because all information will be removed then rebuilt). Link to comment
Alpha Posted August 10, 2022 Share Posted August 10, 2022 (edited) I just followed your instruction @vitor , After wait for about 2 hour , the Reindex Windows is still opened, after testing, it still doesn't seem to work , Suppose the Spotlight do not index the files or Am I missing anything ? Alfred↓ Version 5 Mega supporter My mac verision is ↓ macOS Monterey Version 12.5 MacBook Pro (14-inch, 2021) Chip Apple M1 Pro Memory 16 GB Startup Disk Macintosh HD Edited August 10, 2022 by Alpha Link to comment
vitor Posted August 11, 2022 Author Share Posted August 11, 2022 As I said, it isn’t certain that it would work. That’s a problem between Spotlight and Google Drive. It’s why the Workflow exists. 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