Now that I’ve moved into the Android world, I’ve been using Google/Gmail’s “Tasks” feature to keep track of my To Do Lists. I prefer this method to a separate stand-alone ToDo app because it’s clean & simple, and it’s one less app to manage.
I created a Chrome Application Shortcut to my Task List for easy desktop access to my To Do lists, but was dismayed to discover that the window that opened was much larger than I wanted, and it was always in an inconvenient position. I would have to resize & move the window each time I used the Application Shortcut, because Chrome never seemed to remember the previous window settings.
I searched around for a guide on how to set the window size for application shortcuts, and to my surprise, there are no solutions out there. Not only does the “Application Shortcut” feature lack this functionality, but Chrome itself doesn’t even have a startup switch for setting the window size. Both seem like they’d be pretty essential features for “Application Shortcuts” to be useful, don’t you think?
Step One: Create the Application Shortcut as you normally would.
In my case, I wanted to create an Application Shortcut to Gmail’s Tasks, so I browsed to the appropriate page:
And in Chrome, choose Wrench->Tools->Create Application Shortcuts.
Step Two: Create the intermediary HTML file on your local computer.
Next, you need to create a local HTML file on your computer that resizes the window, moves it to the desired position, and then redirects to your application shortcut URL. Here’s the file you’ll need to create:
Edit the file to reflect the size & position you’d like to set. The format is window.resizeTo(WIDTH, HEIGHT) and window.moveTo(X POSITION, Y POSITION). If you don’t want to set an initial startup position, just remove the window.moveTo line.
You’ll also have to set the redirect target. The one listed in the above example is the one you’ll want to use for the Gmail Tasks application. To get the link for other applications, check the properties of the shortcut that you created in step 1.
Save the file somewhere where it won’t get deleted & remember the name & location. I created a directory within “My Documents” called “Google Tasks Shortcut” and named the file “google_tasks_launcher.html”.
Step Three: Change the Application Shortcut to point to the intermediary file.
You need to change the value after the “-app” switch. In my case, I changed it as follows.
“C:\Documents and Settings\eddie\Local Settings\Application Data\Google\Chrome\Application\chrome.exe” –app=https://mail.google.com/tasks/ig
“C:\Documents and Settings\eddie\Local Settings\Application Data\Google\Chrome\Application\chrome.exe” –app=file:///C:/Documents%20and%20Settings/eddie/My%20Documents/Google
I’ve bolded the parts that have changed.
You can also change the Application Shortcut icon on this screen if that strikes your fancy.