<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: OSX Leopard: How to show the current wallpaper in finder?</title>
	<link>http://ask.metafilter.com/89541/OSX-Leopard-How-to-show-the-current-wallpaper-in-finder/</link>
	<description>Comments on Ask MetaFilter post OSX Leopard: How to show the current wallpaper in finder?</description>
	<pubDate>Tue, 22 Apr 2008 16:11:25 -0800</pubDate>
	<lastBuildDate>Tue, 22 Apr 2008 16:11:25 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: OSX Leopard: How to show the current wallpaper in finder?</title>
		<link>http://ask.metafilter.com/89541/OSX-Leopard-How-to-show-the-current-wallpaper-in-finder</link>	
		<description>How can I get my iMac running Leopard to &lt;strong&gt;show the current wallpaper in Finder?  &lt;/strong&gt;I&apos;m using Leopard&apos;s built-in wallpaper-switching function to randomly display a wallpaper from my collection of over 1,000, but when I get one I don&apos;t like, it gives me no way to easily find the file and delete it.   &lt;br /&gt;&lt;br /&gt; For those of you looking to shuffle wallpapers in Windows, I recommend John&apos;s Background Switcher.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.89541</guid>
		<pubDate>Tue, 22 Apr 2008 15:35:43 -0800</pubDate>
		<dc:creator>XSteveMurphy</dc:creator>
		
			<category>mac</category>
		
			<category>apple</category>
		
			<category>wallpaper</category>
		
			<category>finder</category>
		
	</item> <item>
		<title>By: jedicus</title>
		<link>http://ask.metafilter.com/89541/OSX-Leopard-How-to-show-the-current-wallpaper-in-finder#1315553</link>	
		<description>Try this bit of AppleScript&lt;br&gt;
&lt;br&gt;
&lt;code&gt;on run&lt;br&gt;
	&lt;br&gt;
	tell application &quot;Finder&quot;&lt;br&gt;
		select window of desktop&lt;br&gt;
		set curDesktop to (get desktop picture as text)&lt;br&gt;
		display dialog &quot;The Current Desktop Image is &quot; &amp;amp; curDesktop&lt;br&gt;
	end tell&lt;br&gt;
	&lt;br&gt;
end run&lt;/code&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.89541-1315553</guid>
		<pubDate>Tue, 22 Apr 2008 16:11:25 -0800</pubDate>
		<dc:creator>jedicus</dc:creator>
	</item><item>
		<title>By: jedicus</title>
		<link>http://ask.metafilter.com/89541/OSX-Leopard-How-to-show-the-current-wallpaper-in-finder#1315555</link>	
		<description>You could modify the script to select another image in the folder and delete the old one.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.89541-1315555</guid>
		<pubDate>Tue, 22 Apr 2008 16:12:42 -0800</pubDate>
		<dc:creator>jedicus</dc:creator>
	</item><item>
		<title>By: nowonmai</title>
		<link>http://ask.metafilter.com/89541/OSX-Leopard-How-to-show-the-current-wallpaper-in-finder#1315721</link>	
		<description>Or you could modify jedicus&apos;s script to show the wallpaper in Finder exactly as you ask:&lt;br&gt;
&lt;pre&gt;on run&lt;br&gt;
	tell application &quot;Finder&quot;&lt;br&gt;
		select window of desktop&lt;br&gt;
		set curDesktop to (get desktop picture as text)&lt;br&gt;
		reveal curDesktop&lt;br&gt;
	end tell&lt;br&gt;
end run&lt;/pre&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.89541-1315721</guid>
		<pubDate>Tue, 22 Apr 2008 18:47:32 -0800</pubDate>
		<dc:creator>nowonmai</dc:creator>
	</item><item>
		<title>By: pmbuko</title>
		<link>http://ask.metafilter.com/89541/OSX-Leopard-How-to-show-the-current-wallpaper-in-finder#1316087</link>	
		<description>The on run / end run lines aren&apos;t necessary in this context. Simply copy and paste the rest of nowonmai&apos;s script into the Script Editor (/Applications/AppleScript/Script Editor) and save it as an Application. Then you can just double-click it when you want to reveal the current desktop image.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.89541-1316087</guid>
		<pubDate>Wed, 23 Apr 2008 06:56:14 -0800</pubDate>
		<dc:creator>pmbuko</dc:creator>
	</item><item>
		<title>By: pmbuko</title>
		<link>http://ask.metafilter.com/89541/OSX-Leopard-How-to-show-the-current-wallpaper-in-finder#1316158</link>	
		<description>Just noticed that you&apos;re running Leopard, which gives Applescript better access to this stuff. Here&apos;s what you want:&lt;br&gt;
&lt;pre&gt;tell application &quot;System Events&quot;&lt;br&gt;
    tell current desktop to set currentDesktop to (get picture)&lt;br&gt;
end tell&lt;br&gt;
tell application &quot;Finder&quot;&lt;br&gt;
    reveal currentDesktop&lt;br&gt;
    activate&lt;br&gt;
end tell&lt;/pre&gt;&lt;br&gt;
After some testing, I noticed that this method (and those listed above) only seems to return the correct picture the first time it is run. I&apos;ll try to figure out the problem.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.89541-1316158</guid>
		<pubDate>Wed, 23 Apr 2008 08:09:32 -0800</pubDate>
		<dc:creator>pmbuko</dc:creator>
	</item><item>
		<title>By: nowonmai</title>
		<link>http://ask.metafilter.com/89541/OSX-Leopard-How-to-show-the-current-wallpaper-in-finder#1316774</link>	
		<description>Ha, yes, these scripts only work once. That&apos;s pretty weird. &lt;br&gt;
&lt;br&gt;
I think the problem is that the Finder no longer manages the desktop picture in OS X. In Leopard, the System Preferences application is much more scriptable than in 10.4. See http://www.apple.com/applescript/features/system-prefs.html&lt;br&gt;
&lt;br&gt;
I can&apos;t test it because I don&apos;t have Leopard, but the examples on that page imply that a working script should be easy.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.89541-1316774</guid>
		<pubDate>Wed, 23 Apr 2008 15:54:51 -0800</pubDate>
		<dc:creator>nowonmai</dc:creator>
	</item><item>
		<title>By: jedicus</title>
		<link>http://ask.metafilter.com/89541/OSX-Leopard-How-to-show-the-current-wallpaper-in-finder#1317435</link>	
		<description>Okay, in that case, give this a whirl.&lt;br&gt;
&lt;br&gt;
&lt;code&gt;&lt;br&gt;
tell application &quot;System Events&quot;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;tell current desktop&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set currentDesktop to (get picture as text)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tell application &quot;Finder&quot;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;reveal currentDesktop&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end tell&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;end tell&lt;br&gt;
end tell&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
Unfortunately, I don&apos;t have a Mac handy to test this one on, but I think that should work (and work repeatedly).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.89541-1317435</guid>
		<pubDate>Thu, 24 Apr 2008 07:32:56 -0800</pubDate>
		<dc:creator>jedicus</dc:creator>
	</item><item>
		<title>By: XSteveMurphy</title>
		<link>http://ask.metafilter.com/89541/OSX-Leopard-How-to-show-the-current-wallpaper-in-finder#1319021</link>	
		<description>First of all, thank you all for getting so into this, I would never have gotten this far on my own.  &lt;br&gt;
&lt;br&gt;
That said... even that last script only worked once.  No matter what wallpaper is being displayed... the same file comes up in finder every time.&lt;br&gt;
&lt;br&gt;
Any other ideas?&lt;br&gt;
&lt;br&gt;
Thanks again!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.89541-1319021</guid>
		<pubDate>Fri, 25 Apr 2008 13:58:20 -0800</pubDate>
		<dc:creator>XSteveMurphy</dc:creator>
	</item><item>
		<title>By: XSteveMurphy</title>
		<link>http://ask.metafilter.com/89541/OSX-Leopard-How-to-show-the-current-wallpaper-in-finder#1319049</link>	
		<description>Ok... that wasn&apos;t quite accurate.  It did not, in fact, work the first time either, it was close but as it turns out that was a coincidence.  Here&apos;s the story:&lt;br&gt;
&lt;br&gt;
I tried all scripts but the first, and they all behave the same strange way.  Here is what I found:  Leopard must  maintain a memory of the last manually-selected wallpaper, and then elsewhere must maintain a record of the currently displayed image.  I think your scripts are  calling for the last manually-selected one, and not the currently-displayed one.&lt;br&gt;
&lt;br&gt;
I did a bunch of testing, and I&apos;ve written and rewritten this description, but that&apos;s what I found.&lt;br&gt;
&lt;br&gt;
Here&apos;s a step-by-step.&lt;br&gt;
&lt;br&gt;
I have an iPhoto event called &quot;Wallpapers&quot; that is the list I actually want it to randomly choose from.  I have another iPhoto event with pics of my dog.  I opened the pets event in the Desktop Preferences window and clicked one, and my dog was displayed as my wallpaper and also as the preview image in the top left corner.  I then clicked back to the &quot;Wallpapers&quot; event within the Desktop Preferences, but did NOT click any single photo.  The &quot;preview&quot; image in the top left corner was &lt;em&gt;still&lt;/em&gt; the pic of my dog.  I clicked &quot;Change Picture Every 5 Minutes,&quot; and the wallpaper jumped to a wallpaper from the currently selected event, &quot;Wallpapers.&quot;  The preview pic of my dog was replaced by what I&apos;ll call a &quot;cycle&quot; icon.&lt;br&gt;
&lt;br&gt;
But then if I turn OFF &quot;Change Picture every 5 minutes...&quot; the wallpaper reverts to the picture of my dog, which is in a different iPhoto event altogether.  The preview pic also reverts to my dog, despite the fact that the &quot;Wallpaper&quot; event is selected and not the event with my dog in it.  Running any of the scripts also reveals the dog picture.  &lt;br&gt;
&lt;br&gt;
I turn Change Picture back on, and it displays a normal wallpaper from the &quot;Wallpaper&quot; event.  I log off and log back on, the wallpaper is another random wallpaper.  I run all three scripts... and they all bring up the dog picture.  I turn off &quot;Change Picture&quot; in the Desktop Preferences... and the preview picture and the wallpaper both revert to my dog.  Restarting has the same result as logging off and on.&lt;br&gt;
&lt;br&gt;
I believe that this icon is only hiding the previously selected image, and that all of these scripts are bringing up the image &lt;em&gt;behind&lt;/em&gt; the &quot;cycle&quot; icon, the most recent image to be manually-selected.&lt;br&gt;
&lt;br&gt;
Sorry that was so long and complicated but it&apos;s tough to explain.  Please help!  Thanks!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.89541-1319049</guid>
		<pubDate>Fri, 25 Apr 2008 14:30:56 -0800</pubDate>
		<dc:creator>XSteveMurphy</dc:creator>
	</item><item>
		<title>By: MasterShake</title>
		<link>http://ask.metafilter.com/89541/OSX-Leopard-How-to-show-the-current-wallpaper-in-finder#1319711</link>	
		<description>I worked on this problem for a very long time and finally concluded that there is no way to get the current random wallpaper. You can only get the selected wallpaper. I wasn&apos;t willing to get rid of random wallpapers so I had to do a workaround. I have a cron job that randomly selects a wallpaper and sets it. That way, the OSX built-in random wallpaper never gets turned on and &lt;code&gt;get desktop picture&lt;/code&gt; acts as expected. I have another script that just throws out the current wallpaper. I just call it with quicksilver as needed and it works reliably for me. If you would like copies of the scripts, just MeMail me.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.89541-1319711</guid>
		<pubDate>Sat, 26 Apr 2008 11:38:28 -0800</pubDate>
		<dc:creator>MasterShake</dc:creator>
	</item><item>
		<title>By: mkb</title>
		<link>http://ask.metafilter.com/89541/OSX-Leopard-How-to-show-the-current-wallpaper-in-finder#1391031</link>	
		<description>If you have a plist file editor (for example, the one that comes with Developer Tools), open up ~/Library/Preferences/com.apple.desktop.plist. Look at the path /Background/default/NewImageFilePath.&lt;br&gt;
&lt;br&gt;
Alas, I am no AppleScript guru, so I don&apos;t know how to use that information programmatically.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.89541-1391031</guid>
		<pubDate>Sat, 28 Jun 2008 16:14:49 -0800</pubDate>
		<dc:creator>mkb</dc:creator>
	</item><item>
		<title>By: XSteveMurphy</title>
		<link>http://ask.metafilter.com/89541/OSX-Leopard-How-to-show-the-current-wallpaper-in-finder#1433572</link>	
		<description>@mkb: I don&apos;t think I have a plist editor, and don&apos;t have Developer Tools, but I did open this file in Text Editor and see where it lists the current wallpaper.  So that&apos;s a big step in the right direction, we now know where this file&apos;s name is kept.&lt;br&gt;
&lt;br&gt;
Now if I could find some way to run a file and have this pop up, or even better open Finder right to the image, then I&apos;m at 100%.&lt;br&gt;
&lt;br&gt;
Thanks!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.89541-1433572</guid>
		<pubDate>Wed, 06 Aug 2008 04:40:29 -0800</pubDate>
		<dc:creator>XSteveMurphy</dc:creator>
	</item><item>
		<title>By: XSteveMurphy</title>
		<link>http://ask.metafilter.com/89541/OSX-Leopard-How-to-show-the-current-wallpaper-in-finder#1433574</link>	
		<description>@mkb - Can you name some (free?) plist editors for me?  The text file works but it&apos;s awkward, and I&apos;m not sure what programs are out there for plist editing.&lt;br&gt;
&lt;br&gt;
Thanks!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.89541-1433574</guid>
		<pubDate>Wed, 06 Aug 2008 04:43:43 -0800</pubDate>
		<dc:creator>XSteveMurphy</dc:creator>
	</item><item>
		<title>By: mkb</title>
		<link>http://ask.metafilter.com/89541/OSX-Leopard-How-to-show-the-current-wallpaper-in-finder#1433704</link>	
		<description>&lt;a href=&quot;http://www.fatcatsoftware.com/plisteditpro/&quot;&gt;This&lt;/a&gt; is the only one I know. It&apos;s a free trial. Developer Tools ARE free though.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.89541-1433704</guid>
		<pubDate>Wed, 06 Aug 2008 08:17:16 -0800</pubDate>
		<dc:creator>mkb</dc:creator>
	</item>
	</channel>
</rss>
