[cig-commits] r15823 - doc/geodynamics.org/benchmarks/trunk

luis at geodynamics.org luis at geodynamics.org
Sun Oct 18 00:17:57 PDT 2009


Author: luis
Date: 2009-10-18 00:17:56 -0700 (Sun, 18 Oct 2009)
New Revision: 15823

Added:
   doc/geodynamics.org/benchmarks/trunk/reload-firefox.scpt
   doc/geodynamics.org/benchmarks/trunk/reload-firefox.sh
Log:
Reload firefox from applescript

Added: doc/geodynamics.org/benchmarks/trunk/reload-firefox.scpt
===================================================================
--- doc/geodynamics.org/benchmarks/trunk/reload-firefox.scpt	                        (rev 0)
+++ doc/geodynamics.org/benchmarks/trunk/reload-firefox.scpt	2009-10-18 07:17:56 UTC (rev 15823)
@@ -0,0 +1,10 @@
+-- http://forums.macosxhints.com/showthread.php?t=36025
+
+tell application "Firefox"
+    activate
+    tell application "System Events"
+        tell process "Firefox"
+            keystroke "r" using {command down}
+        end tell
+    end tell
+end tell

Added: doc/geodynamics.org/benchmarks/trunk/reload-firefox.sh
===================================================================
--- doc/geodynamics.org/benchmarks/trunk/reload-firefox.sh	                        (rev 0)
+++ doc/geodynamics.org/benchmarks/trunk/reload-firefox.sh	2009-10-18 07:17:56 UTC (rev 15823)
@@ -0,0 +1,2 @@
+#!/bin/bash
+osascript ./reload-firefox.scpt 2>/dev/null


Property changes on: doc/geodynamics.org/benchmarks/trunk/reload-firefox.sh
___________________________________________________________________
Name: svn:executable
   + *



More information about the CIG-COMMITS mailing list