Jump to content

Henry31

Member
  • Posts

    19
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Henry31's Achievements

Helping Hand

Helping Hand (3/5)

4

Reputation

  1. Just based on my understanding, will this workflow just build up an index. So, a database file on your disk. So not heavy i/o writings, just one file, which will be updated and extended... I don't know if this is a problem for an SSD. I'm working on a MacBook Pro also with an SSD. But for me, build is a search index is a basic task for a computer, so I'm not worrying about my SSD. It's a task which a computer must do, never mind if it has an SSD or an HDD. Just my two cents..
  2. Yes, I'm using this workflow with my 110,47 GB sized Google Drive. And it works like a charm.
  3. Hi @archelium we had a lot of problems with that as well! So I completely feel you! It is really annoying. Our friend vitor found a workaround for that. After some problems in the beginning, it is working pretty well right now for our team! So definitely check that out!
  4. Thanks a lot for clarifying, and also for the new release. I installed everything on the mac of my colleague and after a while the index was built up and everything works fine for him. For me, on my mac, after 24h it was not working, the index seems not to built up correctly. But now I get it to work, this is how I did it: Make sure the index agent is disabled Deleted your workflow Restarted by Mac Reinstalled your workflow new enabled the index agent after a while the index was built up, everything works 🎉 Thanks a lot for your work @vitor!!
  5. Hello @vitor, for several weeks your workflow isn't working for me. Today, I take the time and removed the old Google Drive Workflow from Alfred. I installed the new workflow from your thread here. - Google Drive Workflow Version: v2021.4 - Alfred Version: 4.6 [1266] - MacOS Version: Big Sur (11.6) After enabling the Agent: [11:09:17.099] Google Drive[Script Filter] Queuing argument '' [11:09:17.167] Google Drive[Script Filter] Script with argv '' finished [11:09:17.168] Google Drive[Script Filter] {"items": [ { "title": "Install Google Drive launchd service", "subtitle": "Save a cache of added files whenever /Users/henryauffahrt/henry.auffahrt@aufbau.online - Google Drive is modified", "arg": "install" }, ]} [11:09:18.036] Google Drive[Script Filter] Processing complete [11:09:18.038] Google Drive[Script Filter] Passing output 'install' to Run Script [11:09:18.281] Google Drive[External] Processing complete [11:09:18.283] Google Drive[External] Passing output '' to Run Script PS: I also tried this path: /Users/henryauffahrt/Google Drive - AufBau. I do not see a message like "all done" popping up for several minutes. If I search something, I get the following message: [11:13:37.146] Google Drive[Script Filter] Queuing argument 'chocolat' [11:13:37.287] Google Drive[Script Filter] Script with argv 'chocolat' finished [11:13:37.288] Google Drive[Script Filter] {"items":[{"title":"Run :gdrebuildcache or :gdlaunchd","subtitle":"The former will rebuild the cache file once while the latter will rebuild it every day","valid":false}]} What do you mean with "The former"? Is the indexing process is still in progress? I tried to rebuild the cache with the :gdrebuildcache command [11:14:34.158] Google Drive[Keyword] Processing complete [11:14:34.159] Google Drive[Keyword] Passing output '' to Arg and Vars [11:14:34.160] Google Drive[Arg and Vars] Processing complete [11:14:34.161] Google Drive[Arg and Vars] Passing output '' to Run Script Passing output '' ← Could the blank output be a problem here? I also read your comment in the script for the :gdlaunchd # Set correct directory to watch # Current method might not be robust enough # if there are characters in the path which need escaping So I tried some other pathes like: /Users/henryauffahrt/Google Drive - AufBau/My Drive /Users/henryauffahrt/Google Drive - AufBau/Shared drvies /Users/henryauffahrt/Google Drive - AufBau /Users/henryauffahrt/Google Drive - AufBau/ "/Users/henryauffahrt/Google Drive - AufBau" ← Here I get an error output: [11:18:53.931] ERROR: Google Drive[Run Script] Google Drive path does not exist! '/Users/henryauffahrt/Google Drive - AufBau' ← Same as above, thanks for this good error handling After changing the path I run :gdrebuildcache and I got the following message: [11:22:17.718] Google Drive[Keyword] Processing complete [11:22:17.719] Google Drive[Keyword] Passing output '' to Arg and Vars [11:22:17.720] Google Drive[Arg and Vars] Processing complete [11:22:17.720] Google Drive[Arg and Vars] Passing output '' to Run Script [11:22:17.954] ERROR: Google Drive[Run Script] /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/gems/sqlite3-1.3.13/lib/sqlite3/database.rb:91:in `initialize': table main already exists (SQLite3::SQLException) from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/gems/sqlite3-1.3.13/lib/sqlite3/database.rb:91:in `new' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/gems/sqlite3-1.3.13/lib/sqlite3/database.rb:91:in `prepare' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/gems/sqlite3-1.3.13/lib/sqlite3/database.rb:137:in `execute' from /Users/henryauffahrt/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.5665891C-6430-468E-97FC-80D87DD7B501/rebuild_cache:24:in `<main>' Sorry If I might get it wrong, but with 'initialize' it means that the indexing process is still going on? May I'm not patient enough? Thanks a lot for your help again, I don't know how to make it up to you 😅
  6. Hello everybody, some time ago I look into this thread, 'cause of vacation and so on. I just want to make sure I install the newest version from @vitor's workflow, is this the newest one? It seems that there are different versions with a different approach, I'm quite unsure which one is the "best" one? Also, I notice that the version I installed is not working anymore... Thanks a lot!
  7. @vitor you are amazing! I read through all the post that were posted here, I installed the latest version, and it works pretty well. In the beginning, I thought that it was not working, but I think it was building up the cache in the background. After a while, all files and folders will show up close to 1 second after typing in. What I usually do are two things: "searching for a customer project folder" this is working now ✅ "searching for our current google doc file like 'SEO-Sitemap - domain.com.gsheet'" but as you can see it's a .gsheet file. So this is not a file, this is physical on my disk. And this is working as well ✅ I had once a very big lag after typing in "seo" I have a huge amount of files including this keyword. The interface from Alfred freezes and I couldn't close it. After some seconds, 10 or 20 it disappears. But yeah, maybe an issue because it is still building up a cache in the background? Or because the json file in the background was getting to big, because of the huge amount of files including this keyword. I'm definitely one of these guys. Currently, it is a bit unusual for me. I also changed the keyword to ' , because you can activate Alfred in the "Quick File Search mode". If you then use the space bar in the Alfred window, ' is entered, and you search the whole computer. Before it was native everything, of course. Now I have to go down once with the arrow key, or I just type the space bar a second time. I guess you have to get used to that because the solution now is using workflow. But I think this works for me pretty well. I attached two screenshots about the settings and how it look like for me when typing in the [spacebar] or keyword ' (single apostrophe/single quotation mark)
  8. I changed the Gdrive_path variable to the path of my Gdrive Folder. The script takes a lot of time... Maybe we should add a timeout somewhere... But after 10 or 20 minutes I got a long output with all of my files. I give you an excerpt of that: {"uid":"/Users/henryauffahrt/Google Drive - AufBau/Shared drives/50_Kunden-Projekte/P21010_domain.net - Herr XXXXXX/Sourcecode/templates/OM-Aufbau/themes/my-evo/bootstrap.css","type":"file","title":"bootstrap.css","subtitle":"/Users/henryauffahrt/Google Drive - AufBau/Shared drives/50_Kunden-Projekte/P21010_domain.net - Herr XXXXXX/Sourcecode/templates/OM-Aufbau/themes/my-evo/bootstrap.css","icon":{"path":"/Users/henryauffahrt/Google Drive - AufBau/Shared drives/50_Kunden-Projekte/P21010_domain.net - Herr XXXXXX/Sourcecode/templates/OM-Aufbau/themes/my-evo/bootstrap.css","type":"fileicon"},"arg":"/Users/henryauffahrt/Google Drive - AufBau/Shared drives/50_Kunden-Projekte/P21010_domain.net - Herr XXXXXX/Sourcecode/templates/OM-Aufbau/themes/my-evo/bootstrap.css"}, {"uid":"/Users/henryauffahrt/Google Drive - AufBau/Shared drives/50_Kunden-Projekte/P21010_domain.net - Herr XXXXXX/Sourcecode/templates/OM-Aufbau/themes/my-evo/sourcemap.map","type":"file","title":"sourcemap.map","subtitle":"/Users/henryauffahrt/Google Drive - AufBau/Shared drives/50_Kunden-Projekte/P21010_domain.net - Herr XXXXXX/Sourcecode/templates/OM-Aufbau/themes/my-evo/sourcemap.map","icon":{"path":"/Users/henryauffahrt/Google Drive - AufBau/Shared drives/50_Kunden-Projekte/P21010_domain.net - Herr XXXXXX/Sourcecode/templates/OM-Aufbau/themes/my-evo/sourcemap.map","type":"fileicon"},"arg":"/Users/henryauffahrt/Google Drive - AufBau/Shared drives/50_Kunden-Projekte/P21010_domain.net - Herr XXXXXX/Sourcecode/templates/OM-Aufbau/themes/my-evo/sourcemap.map"}, {"uid":"/Users/henryauffahrt/Google Drive - AufBau/Shared drives/50_Kunden-Projekte/P21010_domain.net - Herr XXXXXX/Sourcecode/templates/OM-Aufbau/productdetails","type":"file","title":"productdetails","subtitle":"/Users/henryauffahrt/Google Drive - AufBau/Shared drives/50_Kunden-Projekte/P21010_domain.net - Herr XXXXXX/Sourcecode/templates/OM-Aufbau/productdetails","icon":{"path":"/Users/henryauffahrt/Google Drive - AufBau/Shared drives/50_Kunden-Projekte/P21010_domain.net - Herr XXXXXX/Sourcecode/templates/OM-Aufbau/productdetails","type":"fileicon"},"arg":"/Users/henryauffahrt/Google Drive - AufBau/Shared drives/50_Kunden-Projekte/P21010_domain.net - Herr XXXXXX/Sourcecode/templates/OM-Aufbau/productdetails"}, {"uid":"/Users/henryauffahrt/Google Drive - AufBau/Shared drives/50_Kunden-Projekte/P21010_domain.net - Herr XXXXXX/Sourcecode/templates/OM-Aufbau/productdetails/stock_OLD_B11.tpl","type":"file","title":"stock_OLD_B11.tpl","subtitle":"/Users/henryauffahrt/Google Drive - AufBau/Shared drives/50_Kunden-Projekte/P21010_domain.net - Herr XXXXXX/Sourcecode/templates/OM-Aufbau/productdetails/stock_OLD_B11.tpl","icon":{"path":"/Users/henryauffahrt/Google Drive - AufBau/Shared drives/50_Kunden-Projekte/P21010_domain.net - Herr XXXXXX/Sourcecode/templates/OM-Aufbau/productdetails/stock_OLD_B11.tpl","type":"fileicon"},"arg":"/Users/henryauffahrt/Google Drive - AufBau/Shared drives/50_Kunden-Projekte/P21010_domain.net - Herr XXXXXX/Sourcecode/templates/OM-Aufbau/productdetails/stock_OLD_B11.tpl"} For data protection reasons, I changed one folder name using search and replace. And I've added a new line. So you can see a list of items according to UID
  9. Thanks @vitor for helping us here with this issue. I have the same results as @alfredpanda has reported. I change the location of the Google Drive folder # from Gdrive_path = Pathname.new('/Volumes/GoogleDrive/My Drive') # I chagned to: Gdrive_path = Pathname.new('/Users/henryauffahrt/Google Drive - AufBau') Under '/volumes/' I only find the disc of my MacBook. Here is a screenshot with the logging console:
  10. Ah okay I understand. I will get a long list with all "streamed" folders and files, everything seems fine. I "stream" files all of my files from Google Drive. And then make most of the folders and files "offline available". That's exactly what I thought, for this reason I removed Google Drive completely once and left the folder with the default settings. This unfortunately led to the same error and resulted in no improvement.
  11. No, this is not correct. Before the Google Drive Backup, only files which are locally synced on my disk where indexable by Spotlight and Alfred, I GUESS. I'm not 100% sure how it behaves with only online files, because I usually synced all my Google Drive files. So the issue is related to local synced files, which behave like Dropbox. To the command ls -R will print out a very long list of files because it is the 'recursive' parameter. Did you mean another command? For example, If I type in ls -lisah I get the following output: I hope this helps... Thanks a lot for any investigating, this issue is very annoying and slowest my down every day in my daily workflow...
  12. To be honest, I did not have any problems with spotlight indexing and GDFS. But for me personally I think most of my files were "available offline", maybe that does the trick for me?
  13. I got a pretty honest answer from the Google support, I would like to share with you. Hopefully for others helpful. The link to the Google-Blog will explain what I explain in my last post. It seems that the only solution is to wait for an update by Gooogle. @Michal Bryxí regarding this blog post, you have time until October 1, 2021 to update. Plenty of time for Google to provide an update that solves the spotlight issue. Only solution for me is to wait, or try the new solution @Vero explained with the Google API and an Alfred API, that sounds very interesting.
  14. Good that you mention this. Backup and Sync from Google is the old Version for Google Drive (private). If you are a Google Workspace Customer (for business purpose) you can't use "Backup and Sync from Google" instead you must use "Google File Stream". Because this is very confusing, Google did a cool step: They simplified both apps and bring it together. So "Backup and Sync from Google" and "Google File Stream" are now "Google Drive for Desktop". In this help article it will be explained: https://support.google.com/googleone/answer/10309431 Look at the FAQ section they will explain it there. @Michal Bryxí you should definitely stick to "Backup and Sync from Google" otherwise you can not use Spotlight or Alfred search. I'm really jealous of you, because you can use it still.
×
×
  • Create New...