<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Xupisco?! &#187; applescript</title>
	<atom:link href="http://xupisco.net/tag/applescript/feed/" rel="self" type="application/rss+xml" />
	<link>http://xupisco.net</link>
	<description></description>
	<lastBuildDate>Thu, 13 May 2010 21:43:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Salvar imagens do Desktoptopia</title>
		<link>http://xupisco.net/2009/05/salvar-imagens-do-desktoptopia/</link>
		<comments>http://xupisco.net/2009/05/salvar-imagens-do-desktoptopia/#comments</comments>
		<pubDate>Mon, 04 May 2009 20:46:59 +0000</pubDate>
		<dc:creator>xupisco</dc:creator>
				<category><![CDATA[Perdido]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://xupisco.net/2009/05/salvar-imagens-do-desktoptopia/</guid>
		<description><![CDATA[Existe esse tal de Desktoptopia. Um programinha muito bacana pro Mac que muda teu Desktop de tempos em tempos (vc pode dizer quanto), por uma série se imagens muito locas. Você pode dar sua nota para seus desktops assim como escolher a &#8220;categoria&#8221; dos que quer receber. Enfim, a questão é que não achei um [...]]]></description>
			<content:encoded><![CDATA[<p>Existe esse tal de <a href="http://desktoptopia.com/">Desktoptopia</a>. Um programinha muito bacana pro Mac que muda teu Desktop de tempos em tempos (vc pode dizer quanto), por uma série se imagens muito locas. Você pode dar sua nota para seus desktops assim como escolher a &#8220;categoria&#8221; dos que quer receber.</p>

<p>Enfim, a questão é que não achei um jeito de salvar as imagens recebidas. Digo, não achei um jeito &#8220;simples&#8221; de fazer isso (abrir as propriedades do desktop e arrastar para um diretório é muito demorado). ENTÃÃO&#8230;.</p>

<p>Dei uma fuçadinha rápida e fiz o applescript abaixo, sim, é só isso:</p>


<div class="wp_syntax"><div class="code"><pre class="applescript" style="font-family:monospace;"><span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;Finder&quot;</span>
	<span style="color: #ff0033; font-weight: bold;">set</span> dp <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #ff0033; font-weight: bold;">get</span> <span style="color: #0066ff;">desktop</span> picture
	<span style="color: #0066ff;">duplicate</span> dp <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #0066ff;">desktop</span>
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span></pre></div></div>


<p>O que ele faz? Simples&#8230; copia o arquivo que fica &#8220;oculto&#8221; pelo desktoptopia para deu Desktop!!&#8230; AEEEEEEE</p>

<p>Apenas pra deixar junto, eu salvo os meus na pasta &#8220;~/Pictures/Wallpapers&#8221;, para isso, uso o script abaixo, se ajudar, pó pegar!</p>


<div class="wp_syntax"><div class="code"><pre class="applescript" style="font-family:monospace;"><span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;Finder&quot;</span>
	<span style="color: #ff0033; font-weight: bold;">set</span> dp <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #ff0033; font-weight: bold;">get</span> <span style="color: #0066ff;">desktop</span> picture
	<span style="color: #0066ff;">duplicate</span> dp <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #0066ff;">path to</span> home <span style="color: #0066ff;">folder</span><span style="color: #000000;">&#41;</span> <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">string</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&amp;</span>amp; <span style="color: #009900;">&quot;Pictures:Wallpapers&quot;</span> <span style="color: #ff0033; font-weight: bold;">with</span> replacing
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span></pre></div></div>


<p>É isso ai! O applescript é fodão&#8230;. (ainda nem mexi no automator)
[]&#8216;s</p>]]></content:encoded>
			<wfw:commentRss>http://xupisco.net/2009/05/salvar-imagens-do-desktoptopia/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
