Thread: [R-gregmisc-users] SF.net SVN: r-gregmisc:[1425] trunk/Rush-Launcher
Brought to you by:
warnes
From: <wa...@us...> - 2010-02-27 19:50:33
|
Revision: 1425 http://r-gregmisc.svn.sourceforge.net/r-gregmisc/?rev=1425&view=rev Author: warnes Date: 2010-02-27 19:50:08 +0000 (Sat, 27 Feb 2010) Log Message: ----------- Use a single script for both Rush applications and for similar Glenn Beck ones Modified Paths: -------------- trunk/Rush-Launcher/Rush AudioStream.app/Contents/Info.plist trunk/Rush-Launcher/Rush AudioStream.app/Contents/Resources/Scripts/main.scpt trunk/Rush-Launcher/Rush AudioStream.app/Contents/Resources/applet.icns trunk/Rush-Launcher/Rush AudioStream.app/Contents/Resources/applet.rsrc trunk/Rush-Launcher/Rush DittoCam.app/Contents/Info.plist trunk/Rush-Launcher/Rush DittoCam.app/Contents/Resources/Scripts/main.scpt Added Paths: ----------- trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/ trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/ trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Info.plist trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/MacOS/ trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/MacOS/applet trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/PkgInfo trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Resources/ trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Resources/Scripts/ trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Resources/Scripts/main.scpt trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Resources/applet.icns trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Resources/applet.rsrc trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Resources/description.rtfd/ trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Resources/description.rtfd/TXT.rtf trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/ trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/ trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Info.plist trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/MacOS/ trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/MacOS/applet trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/PkgInfo trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Resources/ trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Resources/Scripts/ trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Resources/Scripts/main.scpt trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Resources/applet.icns trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Resources/applet.rsrc trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Resources/description.rtfd/ trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Resources/description.rtfd/TXT.rtf trunk/Rush-Launcher/Stream_Launcher.txt Added: trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Info.plist =================================================================== --- trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Info.plist (rev 0) +++ trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Info.plist 2010-02-27 19:50:08 UTC (rev 1425) @@ -0,0 +1,44 @@ +<?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>Glenn Beck Recent Show - Audio</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>0</integer> + <key>name</key> + <string>ScriptWindowState</string> + <key>positionOfDivider</key> + <real>587</real> + <key>savedFrame</key> + <string>228 56 981 822 0 0 1440 878 </string> + <key>selectedTabView</key> + <string>event log</string> + </dict> +</dict> +</plist> Added: trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/MacOS/applet =================================================================== (Binary files differ) Property changes on: trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/MacOS/applet ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/PkgInfo =================================================================== --- trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/PkgInfo (rev 0) +++ trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/PkgInfo 2010-02-27 19:50:08 UTC (rev 1425) @@ -0,0 +1 @@ +APPLaplt \ No newline at end of file Added: trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Resources/Scripts/main.scpt =================================================================== (Binary files differ) Property changes on: trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Resources/Scripts/main.scpt ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Resources/applet.icns =================================================================== (Binary files differ) Property changes on: trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Resources/applet.icns ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Resources/applet.rsrc =================================================================== (Binary files differ) Property changes on: trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Resources/applet.rsrc ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Resources/description.rtfd/TXT.rtf =================================================================== --- trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Resources/description.rtfd/TXT.rtf (rev 0) +++ trunk/Rush-Launcher/Glenn Beck Recent Show - Audio.app/Contents/Resources/description.rtfd/TXT.rtf 2010-02-27 19:50:08 UTC (rev 1425) @@ -0,0 +1,4 @@ +{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf250 +{\fonttbl} +{\colortbl;\red255\green255\blue255;} +} \ No newline at end of file Added: trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Info.plist =================================================================== --- trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Info.plist (rev 0) +++ trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Info.plist 2010-02-27 19:50:08 UTC (rev 1425) @@ -0,0 +1,44 @@ +<?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>Glenn Beck Recent Show - Video</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>0</integer> + <key>name</key> + <string>ScriptWindowState</string> + <key>positionOfDivider</key> + <real>587</real> + <key>savedFrame</key> + <string>228 56 981 822 0 0 1440 878 </string> + <key>selectedTabView</key> + <string>event log</string> + </dict> +</dict> +</plist> Added: trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/MacOS/applet =================================================================== (Binary files differ) Property changes on: trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/MacOS/applet ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/PkgInfo =================================================================== --- trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/PkgInfo (rev 0) +++ trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/PkgInfo 2010-02-27 19:50:08 UTC (rev 1425) @@ -0,0 +1 @@ +APPLaplt \ No newline at end of file Added: trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Resources/Scripts/main.scpt =================================================================== (Binary files differ) Property changes on: trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Resources/Scripts/main.scpt ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Resources/applet.icns =================================================================== (Binary files differ) Property changes on: trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Resources/applet.icns ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Resources/applet.rsrc =================================================================== (Binary files differ) Property changes on: trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Resources/applet.rsrc ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Resources/description.rtfd/TXT.rtf =================================================================== --- trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Resources/description.rtfd/TXT.rtf (rev 0) +++ trunk/Rush-Launcher/Glenn Beck Recent Show - Video.app/Contents/Resources/description.rtfd/TXT.rtf 2010-02-27 19:50:08 UTC (rev 1425) @@ -0,0 +1,4 @@ +{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf250 +{\fonttbl} +{\colortbl;\red255\green255\blue255;} +} \ No newline at end of file Modified: trunk/Rush-Launcher/Rush AudioStream.app/Contents/Info.plist =================================================================== --- trunk/Rush-Launcher/Rush AudioStream.app/Contents/Info.plist 2010-02-27 18:29:02 UTC (rev 1424) +++ trunk/Rush-Launcher/Rush AudioStream.app/Contents/Info.plist 2010-02-27 19:50:08 UTC (rev 1425) @@ -36,7 +36,7 @@ <key>positionOfDivider</key> <real>336</real> <key>savedFrame</key> - <string>231 174 1199 586 0 0 1440 878 </string> + <string>241 56 1199 586 0 0 1440 878 </string> <key>selectedTabView</key> <string>event log</string> </dict> Modified: trunk/Rush-Launcher/Rush AudioStream.app/Contents/Resources/Scripts/main.scpt =================================================================== (Binary files differ) Modified: trunk/Rush-Launcher/Rush AudioStream.app/Contents/Resources/applet.icns =================================================================== (Binary files differ) Modified: trunk/Rush-Launcher/Rush AudioStream.app/Contents/Resources/applet.rsrc =================================================================== (Binary files differ) Modified: trunk/Rush-Launcher/Rush DittoCam.app/Contents/Info.plist =================================================================== --- trunk/Rush-Launcher/Rush DittoCam.app/Contents/Info.plist 2010-02-27 18:29:02 UTC (rev 1424) +++ trunk/Rush-Launcher/Rush DittoCam.app/Contents/Info.plist 2010-02-27 19:50:08 UTC (rev 1425) @@ -36,7 +36,7 @@ <key>positionOfDivider</key> <real>336</real> <key>savedFrame</key> - <string>274 15 1199 586 0 0 1440 878 </string> + <string>241 56 1199 586 0 0 1440 878 </string> <key>selectedTabView</key> <string>event log</string> </dict> Modified: trunk/Rush-Launcher/Rush DittoCam.app/Contents/Resources/Scripts/main.scpt =================================================================== (Binary files differ) Added: trunk/Rush-Launcher/Stream_Launcher.txt =================================================================== --- trunk/Rush-Launcher/Stream_Launcher.txt (rev 0) +++ trunk/Rush-Launcher/Stream_Launcher.txt 2010-02-27 19:50:08 UTC (rev 1425) @@ -0,0 +1,49 @@ +-- +-- Open the most recent archived Glenn Beck/Rush Limbaugh audio/video stream +-- +set myDate to (current date) + +-- Substract up to two days +if (weekday of myDate is Saturday) then + set myDate to myDate - 1 * days +end if +if (weekday of myDate is Sunday) then + set myDate to myDate - 2 * days +end if + +set twoDigitDay to text -2 thru -1 of ("00" & ((day of myDate) + 0)) +set twoDigitMonth to text -2 thru -1 of ("00" & ((month of myDate) + 0)) +set twoDigitYear to text -2 thru -1 of ("00" & ((year of myDate) - 2000)) +set fourDigitYear to text -4 thru -1 of ("0000" & ((year of myDate) + 0)) + + +set audioCode to fourDigitYear * 10000 + twoDigitMonth * 100 + twoDigitDay +set videoCode to twoDigitYear * 10000 + twoDigitMonth * 100 + twoDigitDay + +set GLENN_AUDIO_ARCHIVE to "\"http://www.premiereinteractive.com/cgi-bin/members.cgi?stream=shows/GLENNBECKREAL" & audioCode & "&site=glennbeck&type=real_show&ikey=http%3A%2F%2Fwww.premiereinteractive.com%2Fcgi-bin%2Fmembers.cgi%3Fstream%3Dshows%2FGLENNBECKREAL" & audioCode & "%26site%3Dglennbeck%26type%3Dreal_show\"" + +set GLENN_VIDEO_ARCHIVE to "\"http://www.premiereinteractive.com/cgi-bin/members.cgi?stream=video/" & twoDigitYear & "/" & twoDigitMonth & "/glenncam" & videoCode & "-120b.rm&site=glennbeck&type=real_od&ikey=http%3A%2F%2Fwww.premiereinteractive.com%2Fcgi-bin%2Fmembers.cgi%3Fstream%3Dvideo%2F" & twoDigitYear & "%2F" & twoDigitMonth & "%2Fglenncam" & videoCode & "-120b.rm%26site%3Dglennbeck%26type%3Dreal_od\"" + +set GLENN_AUDIO_LIVE to "" +set GLENN_VIDEO_LIVE to "" + +set RUSH_AUDIO_ARCHIVE to "\"http://stream.rushlimbaugh.com/cgi-bin/members.cgi?stream=shows/RUSHLIMBREAL" & audioCode & "&site=rushlimb&type=real_show\"" +set RUSH_VIDEO_ARCHIVE to "\"http://stream.rushlimbaugh.com/cgi-bin/members.cgi?stream=dittocam/rushlimb" & videoCode & "-128.rm&site=rushlimb&type=real_od\"" + +set RUSH_AUDIO_LIVE to "" +set RUSH_VIDEO_LIVE to "" + +set TARGET_URL to RUSH_AUDIO_ARCHIVE + +do shell script "open -a Firefox " & TARGET_URL + +delay 3 + +tell application "Firefox" to activate + +tell application "System Events" + keystroke "w" using command down -- Command-w to close the current tab. +end tell + +TARGET_URL + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |