![]() Besides the hassle of having to run the launch.exe once as an admin, there was the problem of users not having local admin rights. The reason is that whoever built the install forgot to add a COM object registration in the main installer package, so they added the bandaid fix to the launch exe. Note 2: A similar approach should work in Windows using AutoHotKey.I recently scripted a nightmare app where its install could only be completed if users navigated to the launch exe and ran it as an administrator. Note 1: This also works in Google Chrome Canary simply refer to "Google Chrome Canary" in the AppleScript. ![]() ![]() when you did something with the file you downloaded. So it's also an easy way to quickly return to Chrome, e.g. Now, whenever you press your key combo, Google Chrome will be activated (if it wasn't already), and the AppleScript is loaded removing the Download Bar. Press your preferred key combo (I used Control–Option–Command–J)Īnd that's it.Double click on the right side of that line to activate the shortcut input box.Find your newly created Service on the right under the heading "General".Save the Service as something like "Google Chrome: Close Download Bar".Paste in the above code (and test it if you like).Drag the "Run AppleScript" action to the Workflow pane on the right.Set the "Service receives" to "no input" (drop down) at the top.The easiest way to run this script is to install it as a system wide Service that you can then activate using a keyboard shortcut. Install AppleScript as Service with keyboard shortcut ![]() I guess it's also possible to determine what the bounds are after the window has been resized, and then calculate what they were if you subtract the height of the Download Bar. You can remove this, or set it to whatever you want. The bounds in the script are how I prefer my browser window on my MacBook Air resolution. Like I said, after a while Google Chrome forgets the original window size. opens download window and removes the download bar Set active_tab to active tab index of front window Optional: resizes the window to your preferred dimensions. ![]() Opens the Downloads window (which automatically removes the Download Bar).And while I was working on that, I found a way to automate the closing of the Download Bar as well. This probably isn't a problem on a screen with a high resolution, but on laptops where you have less screen real estate, it can be really annoying.īecause of the resizing, I started looking into finding a solution using AppleScript. However, when you interact with other applications for a while and then return to Google Chrome to close the Download Bar, it forgot the original window size for some reason, and you're stuck with the resized window. When you close the Downloar Bar right away, the window size is restored though. I am the user, and I decide how large my windows should be. Hello Google, this isn't 1995 where JavaScripts are constantly resizing your application windows. Every now and then I go through all the Google Groups topics about this, but even though there've been bug reports and feature requests about this for years, nobody at Google can be bothered to add a simple "Close Download Bar" keyboard shortcut or a "Don't show the Download Bar" checkbox in the settings.įurthermore, the Download Bar isn't added within the window, the window is resized and then the Download Bar gets added. The Download Bar has been my #1 complaint about Google Chrome ever since I started using it, and was often a reason to switch back to Safari as my main browser. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |