<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Flash Player Switching on Mac</title>
	<atom:link href="http://www.mikechambers.com/blog/2006/01/06/flash-player-switching-on-mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikechambers.com/blog/2006/01/06/flash-player-switching-on-mac/</link>
	<description>code = joy</description>
	<pubDate>Fri, 21 Nov 2008 06:47:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Matthew Wallace</title>
		<link>http://www.mikechambers.com/blog/2006/01/06/flash-player-switching-on-mac/#comment-12489</link>
		<dc:creator>Matthew Wallace</dc:creator>
		<pubDate>Tue, 03 Jun 2008 22:00:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=933#comment-12489</guid>
		<description>I came up with a solution to do this on Mac OS X Leopard so you can switch between Flash 9 debugger and Flash Beta 10 but you could do it with any other version if you like. It pretty much does the same thing as what Mike suggested in this article but instead of terminal I wrote an Automator workflow that I am calling FlashSwitcher X.

Check it out and let me know what you think. http://flashalisious.com/flashswitcher-x/</description>
		<content:encoded><![CDATA[<p>I came up with a solution to do this on Mac OS X Leopard so you can switch between Flash 9 debugger and Flash Beta 10 but you could do it with any other version if you like. It pretty much does the same thing as what Mike suggested in this article but instead of terminal I wrote an Automator workflow that I am calling FlashSwitcher X.</p>
<p>Check it out and let me know what you think. <a href="http://flashalisious.com/flashswitcher-x/" rel="nofollow">http://flashalisious.com/flashswitcher-x/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Wallace</title>
		<link>http://www.mikechambers.com/blog/2006/01/06/flash-player-switching-on-mac/#comment-12344</link>
		<dc:creator>Matthew Wallace</dc:creator>
		<pubDate>Sat, 24 May 2008 13:08:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=933#comment-12344</guid>
		<description>Hey Mike thanks for doing this but I am wondering what I am doing wrong. I put the shell script in my home directory and to run the shell script as  you said but I get this message.

&#62;&#62; sudo: cfp: command not found</description>
		<content:encoded><![CDATA[<p>Hey Mike thanks for doing this but I am wondering what I am doing wrong. I put the shell script in my home directory and to run the shell script as  you said but I get this message.</p>
<p>&gt;&gt; sudo: cfp: command not found</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://www.mikechambers.com/blog/2006/01/06/flash-player-switching-on-mac/#comment-12210</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Fri, 09 May 2008 15:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=933#comment-12210</guid>
		<description>Can this be built into a desktop app (or Adobe Air) rather than commandline?</description>
		<content:encoded><![CDATA[<p>Can this be built into a desktop app (or Adobe Air) rather than commandline?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://www.mikechambers.com/blog/2006/01/06/flash-player-switching-on-mac/#comment-6450</link>
		<dc:creator>david</dc:creator>
		<pubDate>Thu, 21 Dec 2006 15:57:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=933#comment-6450</guid>
		<description>Really cool! I'm looking for info about encapsulating xmlhttprequest object and javascript oop with event delegate-handling methods. Just I've found here (Mike Chambers page).
Thanks a lot!
vid.

</description>
		<content:encoded><![CDATA[<p>Really cool! I&#8217;m looking for info about encapsulating xmlhttprequest object and javascript oop with event delegate-handling methods. Just I&#8217;ve found here (Mike Chambers page).<br />
Thanks a lot!<br />
vid.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike chambers</title>
		<link>http://www.mikechambers.com/blog/2006/01/06/flash-player-switching-on-mac/#comment-6449</link>
		<dc:creator>mike chambers</dc:creator>
		<pubDate>Mon, 09 Jan 2006 16:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=933#comment-6449</guid>
		<description>&gt;flashplayer.xpt

Good catch. I didnt test javascript detection. Just copy that file into the appropriate version directory to have the script switch it.

mike chambers

mesh@adobe.com</description>
		<content:encoded><![CDATA[<p>>flashplayer.xpt</p>
<p>Good catch. I didnt test javascript detection. Just copy that file into the appropriate version directory to have the script switch it.</p>
<p>mike chambers</p>
<p><a href="mailto:mesh@adobe.com">mesh@adobe.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://www.mikechambers.com/blog/2006/01/06/flash-player-switching-on-mac/#comment-6448</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Mon, 09 Jan 2006 13:48:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=933#comment-6448</guid>
		<description>What about the file "flashplayer.xpt"?  It seems that unless this file is swapped as well, the browser will still report the wrong version of the player.

A swf will report the correct version of the player, but when I left the .xpt file from the previous version of the player, any JS detection for the player would still report the previous version I had installed, even after restarting the browser.

Does the xpt file need to be swapped as well, or was I just seeing things?</description>
		<content:encoded><![CDATA[<p>What about the file &#8220;flashplayer.xpt&#8221;?  It seems that unless this file is swapped as well, the browser will still report the wrong version of the player.</p>
<p>A swf will report the correct version of the player, but when I left the .xpt file from the previous version of the player, any JS detection for the player would still report the previous version I had installed, even after restarting the browser.</p>
<p>Does the xpt file need to be swapped as well, or was I just seeing things?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: simon</title>
		<link>http://www.mikechambers.com/blog/2006/01/06/flash-player-switching-on-mac/#comment-6447</link>
		<dc:creator>simon</dc:creator>
		<pubDate>Sun, 08 Jan 2006 00:16:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=933#comment-6447</guid>
		<description>I wrote the following a while back for use with TextMate as part of my build process. TextMate's great as it easily allows you to bind scripts to custom commands (and key combinations). However you'd easily be able to adapt it to your set up. It's using the same principle but allows you to cleanly change all the flash players available for OS X, as well as being able to Uninstall, and optionally restart open browsers (FireFox and Safari). 

[code]
#! /bin/bash

FL_VERSION=$1;
RESTART_BROWSERS=$2;

#Rigged to work with TextMate...
FL_PLAYER_ARCHIVE="$TM_BUNDLE_SUPPORT/FlashPlayers"
REQ_FP_PATH="$FL_PLAYER_ARCHIVE/fp_$FL_VERSION/"
UNINSTALL_STR="uninstall_flash_player"

if [ ! -d "$REQ_FP_PATH" ] &#038;&#038; [ "$FL_VERSION" != "$UNINSTALL_STR" ]; then
	echo "$REQ_FP_PATH cannot be found."
	exit 1;
fi

#if you have osx utils (http://osxutils.sourceforge.net/) installed then use this..

PF_A="/Library/Internet Plug-Ins/Shockwave Flash NP-PPC"				#Flash player 5,6
PF_B="/Library/Internet Plug-Ins/flashplayer.xpt"						#Flash Player 6,7,8
PF_C="/Library/Internet Plug-Ins/Flash Player Enabler.plugin"			#Flash Player 7.0.24 and above
PF_D="/Library/Internet Plug-Ins/Flash Player.plugin"					#Flash Player 7.0.24 and above

#Only trash the files that exist (or get bugged by errors).
[[ -e "$PF_A" ]] &#038;&#038; trash "$PF_A"
[[ -e "$PF_B" ]] &#038;&#038; trash "$PF_B"
[[ -e "$PF_C" ]] &#038;&#038; trash "$PF_C"
[[ -e "$PF_D" ]] &#038;&#038; trash "$PF_D"

#Otherwise mv will suffice...
#mv -f "/Library/Internet Plug-Ins/Flash Player Enabler.plugin" ~/.Trash
#mv -f "/Library/Internet Plug-Ins/Flash Player.plugin" ~/.Trash
#mv -f "/Library/Internet Plug-Ins/flashplayer.xpt" ~/.Trash
#mv -f "/Library/Internet Plug-Ins/Shockwave Flash NP-PPC" ~/.Trash

#Alternatively you could go with rm but read about it first: man rm

#Check for unistall only.
if [ "$FL_VERSION" == "$UNINSTALL_STR" ]; then
	echo "Flash player files moved to Wastebasket."
	exit 0;
fi

#This is destructive if the above fails..
cp -R -f "$REQ_FP_PATH" "/Library/Internet Plug-Ins/"

if [ "$RESTART_BROWSERS" == "false" ]; then
	exit 0;
fi

# Check if Firefox is running, if so quit
FF_OPEN=$(ps -xc&#124;grep -i firefox)
[[ $FF_OPEN ]] &#038;&#038; osascript -e 'tell app "FireFox"' -e 'quit' -e 'end tell'

# Check if Safari is running, if so quit (delay is hacky... but works in most cases)
SF_OPEN=$(ps -xc&#124;grep Safari)
[[ $SF_OPEN ]] &#038;&#038; osascript -e 'tell app "Safari"' -e 'quit' -e 'end tell' -e 'delay 2'

#Reopen quit broswers
[[ $FF_OPEN ]] &#038;&#038; open -a FireFox
[[ $SF_OPEN ]] &#038;&#038; open -a Safari
#[[ $SF_OPEN ]] &#038;&#038; open -a Safari "http://www.macromedia.com/software/flash/about/"

exit 0;

#TODO
#Grab Safari's current foremost URL and save for reopening.
#SAFARI_URL=""
#if [ $SF_OPEN ]; then	
#	SAFARI_URL=`exec osascript &lt;EOF &#124; tr "\r" "\n"
#		tell application "Safari"
#			-- Find out if Safari has a window open
#			if (exists (front window)) then
#				-- Get the URL of the page currently displayed in Safari's front window
#				set current_url to URL of document of front window
#			end if
#		end tell
#	EOF`
#fi
[/code]

To install the FP 7.0.14 without restarting any open broswers:
[code]changePlayer.sh 7.0.14 false[/code]

To uninstall the flash player:
[code]changePlayer.sh uninstall_flash_player[/code]

To install FP 6.0.49, restarting open browsers:
[code] changePlayer.sh 6.0.49[/code]</description>
		<content:encoded><![CDATA[<p>I wrote the following a while back for use with TextMate as part of my build process. TextMate&#8217;s great as it easily allows you to bind scripts to custom commands (and key combinations). However you&#8217;d easily be able to adapt it to your set up. It&#8217;s using the same principle but allows you to cleanly change all the flash players available for OS X, as well as being able to Uninstall, and optionally restart open browsers (FireFox and Safari). </p>
<p>[code]<br />
#! /bin/bash</p>
<p>FL_VERSION=$1;<br />
RESTART_BROWSERS=$2;</p>
<p>#Rigged to work with TextMate&#8230;<br />
FL_PLAYER_ARCHIVE=&#8221;$TM_BUNDLE_SUPPORT/FlashPlayers&#8221;<br />
REQ_FP_PATH=&#8221;$FL_PLAYER_ARCHIVE/fp_$FL_VERSION/&#8221;<br />
UNINSTALL_STR=&#8221;uninstall_flash_player&#8221;</p>
<p>if [ ! -d "$REQ_FP_PATH" ] &#038;&#038; [ "$FL_VERSION" != "$UNINSTALL_STR" ]; then<br />
	echo &#8220;$REQ_FP_PATH cannot be found.&#8221;<br />
	exit 1;<br />
fi</p>
<p>#if you have osx utils (http://osxutils.sourceforge.net/) installed then use this..</p>
<p>PF_A=&#8221;/Library/Internet Plug-Ins/Shockwave Flash NP-PPC&#8221;				#Flash player 5,6<br />
PF_B=&#8221;/Library/Internet Plug-Ins/flashplayer.xpt&#8221;						#Flash Player 6,7,8<br />
PF_C=&#8221;/Library/Internet Plug-Ins/Flash Player Enabler.plugin&#8221;			#Flash Player 7.0.24 and above<br />
PF_D=&#8221;/Library/Internet Plug-Ins/Flash Player.plugin&#8221;					#Flash Player 7.0.24 and above</p>
<p>#Only trash the files that exist (or get bugged by errors).<br />
[[ -e "$PF_A" ]] &#038;&#038; trash &#8220;$PF_A&#8221;<br />
[[ -e "$PF_B" ]] &#038;&#038; trash &#8220;$PF_B&#8221;<br />
[[ -e "$PF_C" ]] &#038;&#038; trash &#8220;$PF_C&#8221;<br />
[[ -e "$PF_D" ]] &#038;&#038; trash &#8220;$PF_D&#8221;</p>
<p>#Otherwise mv will suffice&#8230;<br />
#mv -f &#8220;/Library/Internet Plug-Ins/Flash Player Enabler.plugin&#8221; ~/.Trash<br />
#mv -f &#8220;/Library/Internet Plug-Ins/Flash Player.plugin&#8221; ~/.Trash<br />
#mv -f &#8220;/Library/Internet Plug-Ins/flashplayer.xpt&#8221; ~/.Trash<br />
#mv -f &#8220;/Library/Internet Plug-Ins/Shockwave Flash NP-PPC&#8221; ~/.Trash</p>
<p>#Alternatively you could go with rm but read about it first: man rm</p>
<p>#Check for unistall only.<br />
if [ "$FL_VERSION" == "$UNINSTALL_STR" ]; then<br />
	echo &#8220;Flash player files moved to Wastebasket.&#8221;<br />
	exit 0;<br />
fi</p>
<p>#This is destructive if the above fails..<br />
cp -R -f &#8220;$REQ_FP_PATH&#8221; &#8220;/Library/Internet Plug-Ins/&#8221;</p>
<p>if [ "$RESTART_BROWSERS" == "false" ]; then<br />
	exit 0;<br />
fi</p>
<p># Check if Firefox is running, if so quit<br />
FF_OPEN=$(ps -xc|grep -i firefox)<br />
[[ $FF_OPEN ]] &#038;&#038; osascript -e &#8216;tell app &#8220;FireFox&#8221;&#8216; -e &#8216;quit&#8217; -e &#8216;end tell&#8217;</p>
<p># Check if Safari is running, if so quit (delay is hacky&#8230; but works in most cases)<br />
SF_OPEN=$(ps -xc|grep Safari)<br />
[[ $SF_OPEN ]] &#038;&#038; osascript -e &#8216;tell app &#8220;Safari&#8221;&#8216; -e &#8216;quit&#8217; -e &#8216;end tell&#8217; -e &#8216;delay 2&#8242;</p>
<p>#Reopen quit broswers<br />
[[ $FF_OPEN ]] &#038;&#038; open -a FireFox<br />
[[ $SF_OPEN ]] &#038;&#038; open -a Safari<br />
#[[ $SF_OPEN ]] &#038;&#038; open -a Safari &#8220;http://www.macromedia.com/software/flash/about/&#8221;</p>
<p>exit 0;</p>
<p>#TODO<br />
#Grab Safari&#8217;s current foremost URL and save for reopening.<br />
#SAFARI_URL=&#8221;"<br />
#if [ $SF_OPEN ]; then<br />
#	SAFARI_URL=`exec osascript <EOF | tr &#8220;\r&#8221; &#8220;\n&#8221;<br />
#		tell application &#8220;Safari&#8221;<br />
#			&#8211; Find out if Safari has a window open<br />
#			if (exists (front window)) then<br />
#				&#8211; Get the URL of the page currently displayed in Safari&#8217;s front window<br />
#				set current_url to URL of document of front window<br />
#			end if<br />
#		end tell<br />
#	EOF`<br />
#fi<br />
[/code]</p>
<p>To install the FP 7.0.14 without restarting any open broswers:<br />
[code]changePlayer.sh 7.0.14 false[/code]</p>
<p>To uninstall the flash player:<br />
[code]changePlayer.sh uninstall_flash_player[/code]</p>
<p>To install FP 6.0.49, restarting open browsers:<br />
[code] changePlayer.sh 6.0.49[/code]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Weyert de Boer</title>
		<link>http://www.mikechambers.com/blog/2006/01/06/flash-player-switching-on-mac/#comment-6446</link>
		<dc:creator>Weyert de Boer</dc:creator>
		<pubDate>Sat, 07 Jan 2006 12:47:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=933#comment-6446</guid>
		<description>Hi Mike! This was exactly where I was looking for yesterday and today. Thanks, you can't read my mind right?</description>
		<content:encoded><![CDATA[<p>Hi Mike! This was exactly where I was looking for yesterday and today. Thanks, you can&#8217;t read my mind right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://www.mikechambers.com/blog/2006/01/06/flash-player-switching-on-mac/#comment-6445</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Fri, 06 Jan 2006 18:44:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=933#comment-6445</guid>
		<description>This is awesome! I've just been manually swapping the files in and out using Finder. This is A LOT easier.</description>
		<content:encoded><![CDATA[<p>This is awesome! I&#8217;ve just been manually swapping the files in and out using Finder. This is A LOT easier.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
