Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add readme

  • Loading branch information...
commit 19ddd8657a709e548ec77de7e210b05a8262c45f 1 parent d55e995
@atsuya authored
Showing with 48 additions and 1 deletion.
  1. +7 −0 LICENSE
  2. +41 −1 README.md
View
7 LICENSE
@@ -0,0 +1,7 @@
+Copyright (c) 2012 Atsuya Takagi <atsuya.takagi@gmail.com>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
42 README.md
@@ -1,4 +1,44 @@
google-music-control
====================
-control google music via applescript
+AppleScript for controlling google music.
+
+
+What is it?
+===========
+
+``google-music-controll`` is a collection of AppleScript files to control google music opened in web browser.
+
+
+How to use
+==========
+
+Basically, you want to execute the scripts when certain hotkey is triggered. I use [alfred](http://www.alfredapp.com/), but I think you can use [quicksilver](http://qsapp.com/) or [automator](https://www.google.com/search?q=automator+service+applescript) to execute them when hotkey is triggered.
+
+I actually execute shell script that executes the script because none of them allows to set a path to the script to execute; rather they ask you to copy and paste the code. I don't like that.
+
+You can execute the script from terminal like following:
+
+```
+$ osascript chrome/play-pause.scpt
+```
+
+
+Assumptions
+===========
+Before using it, you need to make sure that:
+
+- Using chrome.
+- Google music page is opened (doesn't matter in which tab nor window) and playing music already. The scripts don't know how to initiate to play music.
+
+
+How does it work?
+=================
+
+It uses AppleScript interface that chrome provides and goes through all windows and tabs to find the tab that has google music opened. Then it executes JavaScript on the page that sends appropriate keyboard shortcuts to control it.
+
+
+License
+========
+
+MIT
Please sign in to comment.
Something went wrong with that request. Please try again.