tupton / alfred-chrome-history

Search your Google Chrome history in Alfred
198 stars 17 forks source link

bug #22

Closed tzungtzu closed 5 years ago

tzungtzu commented 6 years ago

I just use my new macbook, and when I run the workflow, there are some problems.

`

Starting debug for 'Google Chrome History'

[2018-05-28 09:42:39][input.scriptfilter] Queuing argument ' ' [2018-05-28 09:42:39][input.scriptfilter] Script with argument '(null)' finished [2018-05-28 09:42:39][ERROR: input.scriptfilter] Code 255: Unable to copy Google Chrome history database from /Users/tzungtzu/Library/Application Support/Google/Chrome/Default/HistoryCheck the workflow log for more information. [2018-05-28 09:42:40][input.scriptfilter] Queuing argument ' d' [2018-05-28 09:42:40][input.scriptfilter] Script with argument '(null)' finished [2018-05-28 09:42:40][ERROR: input.scriptfilter] Code 255: Unable to copy Google Chrome history database from /Users/tzungtzu/Library/Application Support/Google/Chrome/Default/HistoryCheck the workflow log for more information.

`

and seems there is no folder Default/History in /Users/tzungtzu/Library/Application\ Support/Google/Chrome

anyone could help me?

tupton commented 5 years ago

Do you have a non-default Chrome profile? The default path is ~/Library/Application Support/Google/Chrome/Default, but I left that configurable in case you use a different profile name.

Double-click the Script Filter in the Workflow, then change the PROFILE="~/Library/Application Support/Google/Chrome/Default" to point to your Chrome profile, e.g. PROFILE="PROFILE="~/Library/Application Support/Google/Chrome/MyProfile".

screenshot 2019-01-28 17 26 54
benwoodward commented 5 years ago

I had this issue, you need to do the following in a Terminal to find the correct path:

cd ~/Library/Application\ Support/Google/Chrome

Then look for a directory starting with Profile. It should have a number following it.

Or you can do a search:

ls ~/Library/Application\ Support/Google/Chrome/ | grep Profile

If you log into Chrome and sync your Chrome settings then it creates a directory named Profile 1 or Profile 2 etc.

When you know what the path is, just update it in the setting in the screenshot above by double-clicking the 'ch' script filter.

Great workflow btw @tupton

tzungtzu commented 5 years ago

@tupton @benwoodward thanks!!

tupton commented 5 years ago

I wish there was a way to dynamically get this profile directory. For me, it's called Default, but it looks like it's easy to create a different one called Profile 1 or anything really.

I updated the readme to attempt to clarify this and add more detail. I hope it helps others who come across this issue.