aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2010-03-14 08:31:49 +0200
committerFilipp Lepalaan <filipp@mac.com>2010-03-14 08:31:49 +0200
commit7e0e116d4fc2a3d57e125770266e402f67ee815f (patch)
tree4921e673518630a91b6bbee0a8bb1f2da29bc261
parent75e8f5f66e32aecf06e8817c2c91c9da543e87a5 (diff)
downloadmtk-7e0e116d4fc2a3d57e125770266e402f67ee815f.tar.gz
mtk-7e0e116d4fc2a3d57e125770266e402f67ee815f.tar.bz2
mtk-7e0e116d4fc2a3d57e125770266e402f67ee815f.zip
Converted bloop to Bash
-rw-r--r--bloop.command28
-rw-r--r--blooper/Blooper.app/Contents/Info.plist44
-rwxr-xr-xblooper/Blooper.app/Contents/MacOS/appletbin55856 -> 0 bytes
-rw-r--r--blooper/Blooper.app/Contents/PkgInfo1
-rw-r--r--blooper/Blooper.app/Contents/Resources/Scripts/main.scptbin6542 -> 0 bytes
-rw-r--r--blooper/Blooper.app/Contents/Resources/applet.icnsbin40291 -> 0 bytes
-rw-r--r--blooper/Blooper.app/Contents/Resources/applet.rsrcbin725 -> 0 bytes
-rw-r--r--blooper/Blooper.app/Contents/Resources/description.rtfd/TXT.rtf9
-rwxr-xr-xhellyes.command (renamed from hellyeah.command)4
9 files changed, 30 insertions, 56 deletions
diff --git a/bloop.command b/bloop.command
new file mode 100644
index 0000000..67b292a
--- /dev/null
+++ b/bloop.command
@@ -0,0 +1,28 @@
+#! /usr/bin/env bash
+# blooper.command
+# Launch applications and reboot the machine
+# @author Filipp Lepalaan <filipp@mcare.fi>
+# @author Vesa Viskari <vesa@mcare.fi>
+# @copyright (c) 2010 Filipp Lepalaan
+
+MYDIR="~/Desktop/BlooperApps"
+
+# Check if Login Item is set
+defaults read com.apple.loginitems | grep -c "Path: $($0)"
+
+if [[ ! -d "$MYDIR" ]]; then
+ mkdir "$MYDIR"
+ ln -s /Applications/Utilities/Grapher.app "$MYDIR/Grapher.app"
+ ln -s /Applications/Utilities/Activity\ Monitor.app "$MYDIR/Activity Monitor.app"
+ ln -s /Applications/Utilities/Console.app "$MYDIR/Console.app"
+ ln -s /Applications/iTunes.app "$MYDIR/iTunes.app"
+fi
+
+find "$MYDIR/" -exec open {} \;
+trap "killall yes; rm ${MYDIR}; echo 'Cleaning up...'; exit 255" SIGINT
+sleep 10
+
+echo $(date) >> ~/Desktop/blooper.log
+
+#reboot
+osascript -e 'tell application "Finder" to restart'
diff --git a/blooper/Blooper.app/Contents/Info.plist b/blooper/Blooper.app/Contents/Info.plist
deleted file mode 100644
index 82b055d..0000000
--- a/blooper/Blooper.app/Contents/Info.plist
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>CFBundleAllowMixedLocalizations</key>
- <true/>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleExecutable</key>
- <string>applet</string>
- <key>CFBundleIconFile</key>
- <string>applet</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>Blooper2</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleSignature</key>
- <string>aplt</string>
- <key>LSMinimumSystemVersionByArchitecture</key>
- <dict>
- <key>x86_64</key>
- <string>10.6</string>
- </dict>
- <key>LSRequiresCarbon</key>
- <true/>
- <key>WindowState</key>
- <dict>
- <key>dividerCollapsed</key>
- <false/>
- <key>eventLogLevel</key>
- <integer>-1</integer>
- <key>name</key>
- <string>ScriptWindowState</string>
- <key>positionOfDivider</key>
- <real>465</real>
- <key>savedFrame</key>
- <string>45 226 787 617 0 0 1440 878 </string>
- <key>selectedTabView</key>
- <string>result</string>
- </dict>
-</dict>
-</plist>
diff --git a/blooper/Blooper.app/Contents/MacOS/applet b/blooper/Blooper.app/Contents/MacOS/applet
deleted file mode 100755
index 5de1c60..0000000
--- a/blooper/Blooper.app/Contents/MacOS/applet
+++ /dev/null
Binary files differ
diff --git a/blooper/Blooper.app/Contents/PkgInfo b/blooper/Blooper.app/Contents/PkgInfo
deleted file mode 100644
index 3253614..0000000
--- a/blooper/Blooper.app/Contents/PkgInfo
+++ /dev/null
@@ -1 +0,0 @@
-APPLaplt \ No newline at end of file
diff --git a/blooper/Blooper.app/Contents/Resources/Scripts/main.scpt b/blooper/Blooper.app/Contents/Resources/Scripts/main.scpt
deleted file mode 100644
index b61bc22..0000000
--- a/blooper/Blooper.app/Contents/Resources/Scripts/main.scpt
+++ /dev/null
Binary files differ
diff --git a/blooper/Blooper.app/Contents/Resources/applet.icns b/blooper/Blooper.app/Contents/Resources/applet.icns
deleted file mode 100644
index fcc1f09..0000000
--- a/blooper/Blooper.app/Contents/Resources/applet.icns
+++ /dev/null
Binary files differ
diff --git a/blooper/Blooper.app/Contents/Resources/applet.rsrc b/blooper/Blooper.app/Contents/Resources/applet.rsrc
deleted file mode 100644
index 8ee161e..0000000
--- a/blooper/Blooper.app/Contents/Resources/applet.rsrc
+++ /dev/null
Binary files differ
diff --git a/blooper/Blooper.app/Contents/Resources/description.rtfd/TXT.rtf b/blooper/Blooper.app/Contents/Resources/description.rtfd/TXT.rtf
deleted file mode 100644
index 547069e..0000000
--- a/blooper/Blooper.app/Contents/Resources/description.rtfd/TXT.rtf
+++ /dev/null
@@ -1,9 +0,0 @@
-{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf250
-{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
-{\colortbl;\red255\green255\blue255;}
-\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\tx7280\tx7840\tx8400\tx8960\tx9520\tx10080\tx10640\tx11200\tx11760\tx12320\tx12880\tx13440\tx14000\tx14560\tx15120\tx15680\tx16240\tx16800\tx17360\tx17920\tx18480\tx19040\tx19600\tx20160\tx20720\tx21280\tx21840\tx22400\tx22960\tx23520\tx24080\tx24640\tx25200\tx25760\tx26320\tx26880\tx27440\tx28000\tx28560\tx29120\tx29680\tx30240\tx30800\tx31360\tx31920\tx32480\tx33040\tx33600\tx34160\tx34720\tx35280\tx35840\tx36400\tx36960\tx37520\tx38080\tx38640\tx39200\tx39760\tx40320\tx40880\tx41440\tx42000\tx42560\tx43120\tx43680\tx44240\tx44800\tx45360\tx45920\tx46480\tx47040\tx47600\tx48160\tx48720\tx49280\tx49840\tx50400\tx50960\tx51520\tx52080\tx52640\tx53200\tx53760\tx54320\tx54880\tx55440\tx56000\ql\qnatural\pardirnatural
-
-\f0\fs24 \cf0 K\'e4ynnist\'e4\'e4 maxApps - m\'e4\'e4r\'e4n ohjelmia joko Applications tai ty\'f6p\'f6yd\'e4n "TestiOhjelmat" kansiosta.\CocoaLigature0 \
-\CocoaLigature1 Loggaa onnistuneet luupit logFile - tiedostoon ty\'f6p\'f6yd\'e4lle\CocoaLigature0 \
-\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural
-\cf0 \CocoaLigature1 Odottaa waitFor - sekunttia ja k\'e4ynnist\'e4\'e4 koneen uudestaan} \ No newline at end of file
diff --git a/hellyeah.command b/hellyes.command
index 1d9b339..cd857a0 100755
--- a/hellyeah.command
+++ b/hellyes.command
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# hellyeah.command
-# Do some stress testings
+# Do some stress testing
# @author Filipp Lepalaan <filipp@mcare.fi>
MYDIR=/private/tmp/_hellyeah
@@ -14,7 +14,7 @@ if [[ ! -d "${MYDIR}" ]]; then
mkdir "${MYDIR}"
fi
-trap "killall yes; rm ${MYDIR}; echo Killed; exit 255" SIGINT SIGTERM
+trap "killall yes; rm ${MYDIR}; echo 'Cleaning up...'; exit 255" SIGINT SIGTERM
while true; do
for k in 10 100 1000 10000; do