
<?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>hubionmac.com</title>
	<atom:link href="http://hubionmac.com/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://hubionmac.com/wordpress</link>
	<description></description>
	<lastBuildDate>Fri, 03 Sep 2010 20:10:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Mail: angehängte PDFs direkt drucken als Regel&#8230;</title>
		<link>http://hubionmac.com/wordpress/2010/09/mail-angehangte-pdfs-direkt-drucken-als-regel/</link>
		<comments>http://hubionmac.com/wordpress/2010/09/mail-angehangte-pdfs-direkt-drucken-als-regel/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 11:40:11 +0000</pubDate>
		<dc:creator>hubi</dc:creator>
				<category><![CDATA[Apple Mail]]></category>
		<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[drucken]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[regeln]]></category>
		<category><![CDATA[rules]]></category>

		<guid isPermaLink="false">http://hubionmac.com/wordpress/?p=2288</guid>
		<description><![CDATA[Ist eine leicht erweiterte Version dieses Skriptes.... Code zum markieren einmal anklicken Code im Skript-Editor öffnen -- hubionmac.com 2010-09-03 -- script to be added to a Apple Mail rule --saves PDF attachmens of new mails into a tmp folder and prints them with standard printer on perform_mail_action(info) tell application "Mail" tell application "Finder" to set [...]]]></description>
			<content:encoded><![CDATA[<p>Ist eine leicht erweiterte Version <a href="http://hubionmac.com/wordpress/2010/01/mail-regel-skript-attachments-sichern/">dieses Skriptes</a>....</p>
<div>
<div style="clear: left; font-size: 0.8em;"><em>Code zum markieren einmal anklicken <a href="#" onclick="selectThis(this.parentNode.parentNode.parentNode.getElementsByTagName('div')[1]);buildAppleScriptLink();">Code im Skript-Editor öffnen</a></em></div>
<div class="hubionmac_codebox" onclick="selectThis(this);">
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; color: #5e6161">-- hubionmac.com 2010-09-03</p>
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; color: #5e6161">-- script to be added to a Apple Mail rule</p>
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; color: #5e6161">--saves PDF attachmens of new mails into a tmp folder and prints them with standard printer</p>
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; color: #2d9600"><span style="color: #000000"><b>on</b> </span>perform_mail_action<span style="color: #000000">(</span>info<span style="color: #000000">)</span></p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><b>tell</b> <span style="color: #3300ff"><i>application</i></span> "Mail"</p>
<p style="margin: 0.0px 0.0px 0.0px 117.8px; text-indent: -117.8px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>tell</b> <span style="color: #3300ff"><i>application</i></span> "Finder" <b>to</b> <b>set</b> <span style="color: #2d9600">mypath</span> <b>to</b> (<span style="color: #9200de">name</span> <b>of</b> <span style="color: #9200de">startup disk</span> &amp; ":tmp:") <b>as</b> <span style="color: #3300ff"><i>text</i></span></p>
<p style="margin: 0.0px 0.0px 0.0px 117.8px; text-indent: -117.8px; font: 12.0px Verdana; color: #2d9600"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>set</b> </span>theMessages<span style="color: #000000"> <b>to</b> </span>|SelectedMessages|<span style="color: #000000"> <b>of</b> </span>info</p>
<p style="margin: 0.0px 0.0px 0.0px 117.8px; text-indent: -117.8px; font: 12.0px Verdana; color: #2d9600"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>repeat</b> <b>with</b> </span>thisMessage<span style="color: #000000"> <b>in</b> </span>theMessages</p>
<p style="margin: 0.0px 0.0px 0.0px 157.1px; text-indent: -157.2px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>try</b></p>
<p style="margin: 0.0px 0.0px 0.0px 196.4px; text-indent: -196.4px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>repeat</b> <b>with</b> <span style="color: #2d9600">a</span> <b>in</b> (<b>every</b> <span style="color: #3300ff"><i>mail attachment</i></span> <b>of</b> <span style="color: #2d9600">thisMessage</span>)</p>
<p style="margin: 0.0px 0.0px 0.0px 235.7px; text-indent: -235.7px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>set</b> <span style="color: #2d9600">current_a_name</span> <b>to</b> <span style="color: #9200de">name</span> <b>of</b> <span style="color: #2d9600">a</span></p>
<p style="margin: 0.0px 0.0px 0.0px 235.7px; text-indent: -235.7px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>if</b> <span style="color: #2d9600">current_a_name</span> <b>ends with</b> ".pdf" <b>then</b></p>
<p style="margin: 0.0px 0.0px 0.0px 274.9px; text-indent: -275.0px; font: 12.0px Verdana; color: #2d9600"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>set</b> </span>current_a_name<span style="color: #000000"> <b>to</b> <b>my</b> </span>checkname_with_pdf_suffix<span style="color: #000000">(</span>current_a_name<span style="color: #000000">, </span>mypath<span style="color: #000000"> <b>as</b> </span><span style="color: #3300ff"><i>alias</i></span><span style="color: #000000">, </span><span style="color: #671893">false</span><span style="color: #000000">)</span></p>
<p style="margin: 0.0px 0.0px 0.0px 274.9px; text-indent: -275.0px; font: 12.0px Verdana; color: #2d9600"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span></span><span style="color: #3300ff"><b>save</b></span><span style="color: #000000"> </span>a<span style="color: #000000"> </span><span style="color: #3300ff">in</span><span style="color: #000000"> </span>mypath<span style="color: #000000"> &amp; </span>current_a_name</p>
<p style="margin: 0.0px 0.0px 0.0px 274.9px; text-indent: -275.0px; font: 12.0px Verdana; color: #2d9600"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>my</b> </span>print_file_with_standard_printer<span style="color: #000000">(</span><span style="color: #9200de">POSIX path</span><span style="color: #000000"> <b>of</b> ((</span>mypath<span style="color: #000000"> &amp; </span>current_a_name<span style="color: #000000">) <b>as</b> </span><span style="color: #3300ff"><i>alias</i></span><span style="color: #000000">))</span></p>
<p style="margin: 0.0px 0.0px 0.0px 235.7px; text-indent: -235.7px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>else</b></p>
<p style="margin: 0.0px 0.0px 0.0px 274.9px; text-indent: -275.0px; font: 12.0px Verdana; color: #5e6161"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span></span>--display dialog current_a_name</p>
<p style="margin: 0.0px 0.0px 0.0px 235.7px; text-indent: -235.7px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>end</b> <b>if</b></p>
<p style="margin: 0.0px 0.0px 0.0px 196.4px; text-indent: -196.4px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>end</b> <b>repeat</b></p>
<p style="margin: 0.0px 0.0px 0.0px 157.1px; text-indent: -157.2px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>on</b> <b>error</b> <span style="color: #2d9600">msg</span></p>
<p style="margin: 0.0px 0.0px 0.0px 196.4px; text-indent: -196.4px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span style="color: #2000c0"><b>do shell script</b></span> "echo " &amp; <span style="color: #9200de">quoted form</span> <b>of</b> <span style="color: #2d9600">msg</span> &amp; " | cat&gt;&gt;~/Desktop/MailscriptErrorLog.txt"</p>
<p style="margin: 0.0px 0.0px 0.0px 157.1px; text-indent: -157.2px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>end</b> <b>try</b></p>
<p style="margin: 0.0px 0.0px 0.0px 117.8px; text-indent: -117.8px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>end</b> <b>repeat</b></p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><b>end</b> <b>tell</b></p>
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; color: #2d9600"><span style="color: #000000"><b>end</b> </span>perform_mail_action</p>
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; min-height: 15.0px"></p>
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; min-height: 15.0px"></p>
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; color: #2d9600"><span style="color: #000000"><b>on</b> </span>checkname_with_pdf_suffix<span style="color: #000000">(</span>n<span style="color: #000000">, </span>D<span style="color: #000000">, </span>looped<span style="color: #000000">)</span></p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><b>tell</b> <span style="color: #3300ff"><i>application</i></span> "Finder"</p>
<p style="margin: 0.0px 0.0px 0.0px 117.8px; text-indent: -117.8px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>set</b> <span style="color: #2d9600">thefiles</span> <b>to</b> <span style="color: #9200de">name</span> <b>of</b> <b>every</b> <span style="color: #3300ff"><i>item</i></span> <b>of</b> (<span style="color: #2d9600">D</span> <b>as</b> <span style="color: #3300ff"><i>alias</i></span>)</p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><b>end</b> <b>tell</b></p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><b>if</b> <span style="color: #2d9600">thefiles</span> <b>contains</b> <span style="color: #2d9600">n</span> <b>then</b></p>
<p style="margin: 0.0px 0.0px 0.0px 117.8px; text-indent: -117.8px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>if</b> <span style="color: #2d9600">looped</span> = <span style="color: #671893">false</span> <b>then</b></p>
<p style="margin: 0.0px 0.0px 0.0px 157.1px; text-indent: -157.2px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>set</b> <span style="color: #2d9600">n</span> <b>to</b> ((<span style="color: #3300ff"><i>characters</i></span> 1 <b>through</b> -5 <b>of</b> <span style="color: #2d9600">n</span>) &amp; " 1" &amp; (<span style="color: #3300ff"><i>characters</i></span> -4 <b>through</b> -1 <b>of</b> <span style="color: #2d9600">n</span>)) <b>as</b> <span style="color: #3300ff"><i>text</i></span></p>
<p style="margin: 0.0px 0.0px 0.0px 157.1px; text-indent: -157.2px; font: 12.0px Verdana; color: #2d9600"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>my</b> </span>checkname_with_pdf_suffix<span style="color: #000000">(</span>n<span style="color: #000000">, </span>D<span style="color: #000000">, </span><span style="color: #671893">true</span><span style="color: #000000">)</span></p>
<p style="margin: 0.0px 0.0px 0.0px 117.8px; text-indent: -117.8px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>else</b></p>
<p style="margin: 0.0px 0.0px 0.0px 157.1px; text-indent: -157.2px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>set</b> <span style="color: #2d9600">tmp</span> <b>to</b> (<b>last</b> <span style="color: #3300ff"><i>word</i></span> <b>of</b> ((<span style="color: #3300ff"><i>characters</i></span> 1 <b>through</b> -5 <b>of</b> <span style="color: #2d9600">n</span>) <b>as</b> <span style="color: #3300ff"><i>text</i></span>) <b>as</b> <span style="color: #3300ff"><i>integer</i></span>)</p>
<p style="margin: 0.0px 0.0px 0.0px 157.1px; text-indent: -157.2px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>set</b> <span style="color: #2d9600">tmpcount</span> <b>to</b> (<span style="color: #3300ff"><b>count</b></span> <b>of</b> <span style="color: #3300ff"><i>characters</i></span> <b>of</b> (<span style="color: #2d9600">tmp</span> <b>as</b> <span style="color: #3300ff"><i>text</i></span>)) + 5</p>
<p style="margin: 0.0px 0.0px 0.0px 157.1px; text-indent: -157.2px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>set</b> <span style="color: #2d9600">tmp</span> <b>to</b> <span style="color: #2d9600">tmp</span> + 1</p>
<p style="margin: 0.0px 0.0px 0.0px 157.1px; text-indent: -157.2px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>set</b> <span style="color: #2d9600">n</span> <b>to</b> ((<span style="color: #3300ff"><i>characters</i></span> 1 <b>through</b> (-1 * <span style="color: #2d9600">tmpcount</span>) <b>of</b> <span style="color: #2d9600">n</span>) &amp; <span style="color: #2d9600">tmp</span> &amp; (<span style="color: #3300ff"><i>characters</i></span> -4 <b>through</b> -1 <b>of</b> <span style="color: #2d9600">n</span>)) <b>as</b> <span style="color: #3300ff"><i>text</i></span></p>
<p style="margin: 0.0px 0.0px 0.0px 157.1px; text-indent: -157.2px; font: 12.0px Verdana; color: #2d9600"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>my</b> </span>checkname_with_pdf_suffix<span style="color: #000000">(</span>n<span style="color: #000000">, </span>D<span style="color: #000000">, </span><span style="color: #671893">true</span><span style="color: #000000">)</span></p>
<p style="margin: 0.0px 0.0px 0.0px 117.8px; text-indent: -117.8px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>end</b> <b>if</b></p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><b>else</b></p>
<p style="margin: 0.0px 0.0px 0.0px 117.8px; text-indent: -117.8px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>return</b> <span style="color: #2d9600">n</span></p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><b>end</b> <b>if</b></p>
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; color: #2d9600"><span style="color: #000000"><b>end</b> </span>checkname_with_pdf_suffix</p>
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; min-height: 15.0px"></p>
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; min-height: 15.0px"></p>
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; color: #2d9600"><span style="color: #000000"><b>on</b> </span>getStandardPrinter<span style="color: #000000">()</span></p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><b>tell</b> <span style="color: #3300ff"><i>application</i></span> "Printer Setup Utility"</p>
<p style="margin: 0.0px 0.0px 0.0px 117.8px; text-indent: -117.8px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>return</b> <span style="color: #9200de">name</span> <b>of</b> <span style="color: #9200de">current printer</span> &amp; ".app"</p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><b>end</b> <b>tell</b></p>
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; color: #2d9600"><span style="color: #000000"><b>end</b> </span>getStandardPrinter</p>
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; min-height: 15.0px"></p>
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; color: #2d9600"><span style="color: #000000"><b>on</b> </span>print_file_with_standard_printer<span style="color: #000000">(</span>thefile<span style="color: #000000">)</span></p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana; color: #5e6161"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span>-- thefile is a unquoted POSIX path</p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana; color: #5e6161"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span>--assumes that the printer app is stored in ~/Library/Printers/ not /Library/Printers/</p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana; color: #3300ff"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span><b>tell</b> </span><i>application</i><span style="color: #000000"> (<b>my</b> </span><span style="color: #2d9600">getStandardPrinter</span><span style="color: #000000">()) <b>to</b> </span><b>activate</b></p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><b>tell</b> <span style="color: #3300ff"><i>application</i></span> "Mail"</p>
<p style="margin: 0.0px 0.0px 0.0px 117.8px; text-indent: -117.8px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span style="color: #2000c0"><b>do shell script</b></span> "open -a ~/Library/Printers/" &amp; <span style="color: #9200de">quoted form</span> <b>of</b> (<b>my</b> <span style="color: #2d9600">getStandardPrinter</span>()) &amp; " " &amp; <span style="color: #9200de">quoted form</span> <b>of</b> <span style="color: #2d9600">thefile</span></p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><b>end</b> <b>tell</b></p>
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; color: #2d9600"><span style="color: #000000"><b>end</b> </span>print_file_with_standard_printer</p>
</div>
</div>
<h3  class="related_post_title">Ähnliche Themen</h3><ul class="related_post"><li>March 23, 2010 -- <a href="http://hubionmac.com/wordpress/2010/03/applescript-email-als-pdf-speichern-mit-attachments/" title="AppleScript: Email als PDF speichern, mit Attachments">AppleScript: Email als PDF speichern, mit Attachments</a></li><li>March 20, 2010 -- <a href="http://hubionmac.com/wordpress/2010/03/automator-kleines-pdf-drucken/" title="Automator: Kleines PDF drucken">Automator: Kleines PDF drucken</a></li><li>October 3, 2009 -- <a href="http://hubionmac.com/wordpress/2009/10/pages-aktuelle-seite-drucken/" title="Pages: Aktuelle Seite Drucken">Pages: Aktuelle Seite Drucken</a></li><li>May 14, 2010 -- <a href="http://hubionmac.com/wordpress/2010/05/pdf-wasserzeichen-die-ii-12/" title="PDF Wasserzeichen die II 1/2.">PDF Wasserzeichen die II 1/2.</a></li><li>March 22, 2010 -- <a href="http://hubionmac.com/wordpress/2010/03/applescript-pdfs-verkleinern-droplet/" title="AppleScript: PDFs verkleinern &#8211; Droplet">AppleScript: PDFs verkleinern &#8211; Droplet</a></li><li>March 12, 2010 -- <a href="http://hubionmac.com/wordpress/2010/03/applescript-alternative-zu-imageevents/" title="AppleScript: Alternative zu ImageEvents">AppleScript: Alternative zu ImageEvents</a></li><li>November 9, 2009 -- <a href="http://hubionmac.com/wordpress/2009/11/mailreine-text-email-via-skript-estellen/" title="Mail:Reine Text Email via Skript estellen">Mail:Reine Text Email via Skript estellen</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://hubionmac.com/wordpress/2010/09/mail-angehangte-pdfs-direkt-drucken-als-regel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Erweiterte iTunes Info (Über iTunes)</title>
		<link>http://hubionmac.com/wordpress/2010/08/erweiterte-itunes-info-uber-itunes/</link>
		<comments>http://hubionmac.com/wordpress/2010/08/erweiterte-itunes-info-uber-itunes/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 19:34:59 +0000</pubDate>
		<dc:creator>hubi</dc:creator>
				<category><![CDATA[Shortcuts]]></category>
		<category><![CDATA[easter-egg]]></category>
		<category><![CDATA[iTunes]]></category>
		<category><![CDATA[shortcut]]></category>

		<guid isPermaLink="false">http://hubionmac.com/wordpress/?p=2275</guid>
		<description><![CDATA[Wenn man in iTunes den Menüpunkt "Über iTunes" mit gedrückt ctrl-Taste aufruft werden in dem Informationsfenster einige Infos über Treiber-Versionen und die Seriennummern und IMEI-Nummern von gekoppelten Geräten angezeigt... recht praktisch, wenn man mal schnell die Seriennummer von seinem iPod braucht =) Scrollt einem die Liste zu schnell kann man mit der alt-Taste die Laufrichtung [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://hubionmac.com/wordpress/wp-content/uploads/2010/08/Bildschirmfoto_Itunes.png" rel="shadowbox[post-2275];player=img;"><img src="http://hubionmac.com/wordpress/wp-content/uploads/2010/08/Bildschirmfoto_Itunes-150x150.png" alt="" title="Bildschirmfoto_Itunes" width="150" height="150" class="alignleft size-thumbnail wp-image-2276" /></a>Wenn man in iTunes den Menüpunkt "Über iTunes" mit gedrückt ctrl-Taste aufruft werden in dem Informationsfenster einige Infos über Treiber-Versionen und die Seriennummern und IMEI-Nummern von gekoppelten Geräten angezeigt... recht praktisch, wenn man mal schnell  die Seriennummer von seinem iPod braucht =) Scrollt einem die Liste zu schnell kann man mit der alt-Taste die Laufrichtung umkehren...<br />
und mit der Leertaste ganz anhalten (merci für den Tip Tomthecat).</p>
<h3  class="related_post_title">Ähnliche Themen</h3><ul class="related_post"><li>December 13, 2009 -- <a href="http://hubionmac.com/wordpress/2009/12/stop-itunes-after-x-minutes-app/" title="Stop iTunes after x Minutes.app">Stop iTunes after x Minutes.app</a></li><li>December 13, 2009 -- <a href="http://hubionmac.com/wordpress/2009/12/hubis-itunes-scripts/" title="Hubi&#8217;s iTunes Scripts">Hubi&#8217;s iTunes Scripts</a></li><li>October 10, 2009 -- <a href="http://hubionmac.com/wordpress/2009/10/itunes-download-order-mit-itunes-abgleichen-mit-playlists/" title="iTunes: Download Order mit iTunes abgleichen (mit playlists)">iTunes: Download Order mit iTunes abgleichen (mit playlists)</a></li><li>October 9, 2009 -- <a href="http://hubionmac.com/wordpress/2009/10/shortcuts-itunes/" title="Shortcuts: iTunes">Shortcuts: iTunes</a></li><li>May 7, 2009 -- <a href="http://hubionmac.com/wordpress/2009/05/mp3s-uber-den-kommentar-schnell-taggen/" title="Mp3s über den Kommentar schnell taggen">Mp3s über den Kommentar schnell taggen</a></li><li>February 7, 2009 -- <a href="http://hubionmac.com/wordpress/2009/02/itunesapplescript-playlist-von-kurzlich-bewerteten-titeln-erstellen/" title="iTunes:AppleScript ->Playlist von kürzlich bewerteten Titeln erstellen">iTunes:AppleScript ->Playlist von kürzlich bewerteten Titeln erstellen</a></li><li>February 7, 2009 -- <a href="http://hubionmac.com/wordpress/2009/02/itunesapplescript-album-playlisten-erstellen/" title="iTunes:AppleScript -> Album Playlisten erstellen">iTunes:AppleScript -> Album Playlisten erstellen</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://hubionmac.com/wordpress/2010/08/erweiterte-itunes-info-uber-itunes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Batterielaufzeit messen</title>
		<link>http://hubionmac.com/wordpress/2010/08/batterielaufzeit-messen/</link>
		<comments>http://hubionmac.com/wordpress/2010/08/batterielaufzeit-messen/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 06:14:28 +0000</pubDate>
		<dc:creator>hubi</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[battery]]></category>
		<category><![CDATA[charge]]></category>
		<category><![CDATA[laufzeit]]></category>
		<category><![CDATA[pmset]]></category>
		<category><![CDATA[power]]></category>

		<guid isPermaLink="false">http://hubionmac.com/wordpress/?p=2273</guid>
		<description><![CDATA[Wenn man mal wissen möchte, wie lange die Batterie läuft und wie der Ladungsverlauf so aussieht, kann man sich mit pmset -g pslog >> ~/Desktop/pslog.txt ein Log schreiben lassen... Ähnliche ThemenNo Related Post]]></description>
			<content:encoded><![CDATA[<p style="clear: both">Wenn man mal wissen möchte, wie lange die Batterie läuft und wie der Ladungsverlauf so aussieht, kann man sich mit <code>pmset -g pslog >> ~/Desktop/pslog.txt</code> ein Log schreiben lassen...</p>
<p>  <br class="final-break" style="clear: both" /></p>
<h3  class="related_post_title">Ähnliche Themen</h3><ul class="related_post"><li>No Related Post</li></ul>]]></content:encoded>
			<wfw:commentRss>http://hubionmac.com/wordpress/2010/08/batterielaufzeit-messen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Software Update via Shell bzw. Remote Desktop</title>
		<link>http://hubionmac.com/wordpress/2010/08/software-update-via-shell-bzw-remote-desktop/</link>
		<comments>http://hubionmac.com/wordpress/2010/08/software-update-via-shell-bzw-remote-desktop/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 20:45:51 +0000</pubDate>
		<dc:creator>hubi</dc:creator>
				<category><![CDATA[Nice2Know]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[apple remote desktop]]></category>
		<category><![CDATA[deepFreeze]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[updates]]></category>

		<guid isPermaLink="false">http://hubionmac.com/wordpress/?p=2269</guid>
		<description><![CDATA[Bei der Arbeit haben wir so ca. 8 Rechner die ständig auf dem neusten Stand sein sollen. Um jetzt nicht bei jedem in Regelmäßigen Abständen die Software-Aktualisierung starten zu müssen kann man z.B. via Remote Desktop einen Shell-Befehl als root an die Computer schicken softwareupdate -ai lädt dann jedes Update und meldet sich, wenn alles [...]]]></description>
			<content:encoded><![CDATA[<p>Bei der Arbeit haben wir so ca. 8 Rechner die ständig auf dem neusten Stand sein sollen. Um jetzt nicht bei jedem in Regelmäßigen Abständen die Software-Aktualisierung starten zu müssen kann man z.B. via Remote Desktop einen Shell-Befehl als root an die Computer schicken <code>softwareupdate -ai</code> lädt dann jedes Update und meldet sich, wenn alles installiert ist. Diese Prozess muss manuell angestoßen werden ,da auf allen Geräte zusätzlich DeepFreeze installiert ist. Dies wird übrigens auch via Shell-Befehl deaktiviert um sich weitere lästige Klicks zu ersparen und zwar mit <code>/Library/Application\ Support/Faronics/Deep\ Freeze/CLI "&lt;username&gt;" "&lt;password&gt;" bootThawed</code> zum entsperren<br />
und <code>/Library/Application\ Support/Faronics/Deep\ Freeze/CLI "&lt;username&gt;" "&lt;password&gt;" bootFrozen</code> zum einfrieren.</p>
<h3  class="related_post_title">Ähnliche Themen</h3><ul class="related_post"><li>No Related Post</li></ul>]]></content:encoded>
			<wfw:commentRss>http://hubionmac.com/wordpress/2010/08/software-update-via-shell-bzw-remote-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Defaults write: diskutil für extra Optionen</title>
		<link>http://hubionmac.com/wordpress/2010/08/defaults-write-diskutil-fur-extra-optionen/</link>
		<comments>http://hubionmac.com/wordpress/2010/08/defaults-write-diskutil-fur-extra-optionen/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 05:57:30 +0000</pubDate>
		<dc:creator>hubi</dc:creator>
				<category><![CDATA[defaults write]]></category>
		<category><![CDATA[defaults]]></category>
		<category><![CDATA[Diskutility]]></category>
		<category><![CDATA[features]]></category>
		<category><![CDATA[Festplatten-Dienstprogramm]]></category>
		<category><![CDATA[preferences]]></category>

		<guid isPermaLink="false">http://hubionmac.com/wordpress/?p=2264</guid>
		<description><![CDATA[Für ein paar extra Features im Diskutil, sofern man damit etwas anzufangen weiß: defaults write com.apple.DiskUtility advanced-image-options 1 Ähnliche ThemenDecember 11, 2008 -- FrontRow per default auf einem anderen Bildschirm]]></description>
			<content:encoded><![CDATA[<p>Für ein paar extra Features im Diskutil, sofern man damit etwas anzufangen weiß:<br />
<code>defaults write com.apple.DiskUtility advanced-image-options 1</code></p>
<h3  class="related_post_title">Ähnliche Themen</h3><ul class="related_post"><li>December 11, 2008 -- <a href="http://hubionmac.com/wordpress/2008/12/frontrow-per-default-auf-einem-anderen-bildschirm/" title="FrontRow per default auf einem anderen Bildschirm">FrontRow per default auf einem anderen Bildschirm</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://hubionmac.com/wordpress/2010/08/defaults-write-diskutil-fur-extra-optionen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wenn mal Anführungszeichen und Bindestriche im Code von WP gewandelt werden</title>
		<link>http://hubionmac.com/wordpress/2010/08/wenn-mal-anfuhrungszeichen-und-bindestriche-im-code-von-wp-gewandelt-werden/</link>
		<comments>http://hubionmac.com/wordpress/2010/08/wenn-mal-anfuhrungszeichen-und-bindestriche-im-code-von-wp-gewandelt-werden/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 18:11:50 +0000</pubDate>
		<dc:creator>hubi</dc:creator>
				<category><![CDATA[webdev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://hubionmac.com/wordpress/?p=2259</guid>
		<description><![CDATA[... kann das ganz schön nerven. Es gibt da wohl ein Plug-In das diese curly-quotes wieder gegen normale ersetzt. Wenn man aber auf dieses automatische Feature komplett verzichte möchte, kann man auch einfach in die function.php-Datei des aktiven Themes einfach diese code hier einfügen und schon werden Anführungszeichen und Bindestriche unverändert ausgegeben. remove_filter('the_content', 'wptexturize'); Ähnliche [...]]]></description>
			<content:encoded><![CDATA[<p>... kann das ganz schön nerven. Es gibt da wohl ein Plug-In das diese curly-quotes wieder gegen normale ersetzt. Wenn man aber auf dieses automatische Feature komplett verzichte möchte, kann man auch einfach in die function.php-Datei des aktiven Themes einfach diese code hier einfügen und schon werden Anführungszeichen und Bindestriche unverändert ausgegeben.</p>
<div class="hubionmac_codebox" onclick="selectThis(this);">remove_filter('the_content', 'wptexturize');</div>
<h3  class="related_post_title">Ähnliche Themen</h3><ul class="related_post"><li>December 6, 2009 -- <a href="http://hubionmac.com/wordpress/2009/12/bin-gerade-am-aufraumen/" title="Bin gerade am Aufräumen&#8230;">Bin gerade am Aufräumen&#8230;</a></li><li>August 23, 2008 -- <a href="http://hubionmac.com/wordpress/2008/08/blog-neues-design/" title="Blog: Neues Design">Blog: Neues Design</a></li><li>February 1, 2008 -- <a href="http://hubionmac.com/wordpress/2008/02/wie-schreibtst-du-denn-in-deinen-web-blog/" title="Wie schreibtst DU denn in Deinen Web-Blog?">Wie schreibtst DU denn in Deinen Web-Blog?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://hubionmac.com/wordpress/2010/08/wenn-mal-anfuhrungszeichen-und-bindestriche-im-code-von-wp-gewandelt-werden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Batch Upload für Sonorasaurus</title>
		<link>http://hubionmac.com/wordpress/2010/07/batch-upload-fur-sonorasaurus/</link>
		<comments>http://hubionmac.com/wordpress/2010/07/batch-upload-fur-sonorasaurus/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 22:08:25 +0000</pubDate>
		<dc:creator>hubi</dc:creator>
				<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[Useful Snippets]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[Sonorasaurus]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://hubionmac.com/wordpress/?p=2247</guid>
		<description><![CDATA[Ich habe mir ja vor kurzem ein iPad zugelegt (Nelson sein Name) und war auf der Suche nach einer Player-Software, mit der ich zur Not halbwegs komfortabel Musik machen kann. Dabei bin ich auf Sonorasaurus gestoßen. Neben der File-Sync Lösung, die über USB funktioniert, ist bisher nur ein einfacher Webserver vorhanden, über den sich jeden [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://hubionmac.com/wordpress/wp-content/uploads/2010/07/Mobile-Photo-Jul-4-2010-11-46-07-PM.jpg" rel="shadowbox[post-2247];player=img;"><img src="http://hubionmac.com/wordpress/wp-content/uploads/2010/07/Mobile-Photo-Jul-4-2010-11-46-07-PM-150x150.jpg" alt="" title="Mobile Photo Jul 4,  PM" width="150" height="150" class="alignleft size-thumbnail wp-image-2248" /></a>Ich habe mir ja vor kurzem ein iPad zugelegt (Nelson sein Name) und war auf der Suche nach einer Player-Software, mit der ich zur Not halbwegs komfortabel Musik machen kann. Dabei bin ich auf <a href="http://www.sonorasaurus.com/" target="_blank">Sonorasaurus</a> gestoßen. Neben der File-Sync Lösung, die über USB funktioniert, ist bisher nur ein einfacher Webserver vorhanden, über den sich jeden Datei einzeln hochladen lässt. Da ich aber unbedingt über das Netzwerk schnell den ein oder anderen Song nachladen können möchte, habe ich mir hierfür.... RICHTIG, ein kleine AppleScript geschrieben. Es nutzt curl um im batch Dateien auf das iPad zu laden (aktiviert Sonorasaurus-Webserver vorrausgesetzt). Die IP des iPads stellt man über den Dateinamen (Prefs-Datei habe ich mir mal gespart) ein. Ein einfaches Droplet, Mp3-Dateien drauf-ziehen, warten, auf dem iPad abspielen =)<div style="border:1px dashed #333;float:left;padding:5px;margin:5px"><a href="http://hubionmac.com/wordpress/wp-content/plugins/download-monitor/download.php?id=37"><img src="http://hubionmac.com/images/download.gif"></a><br>Upload to Sonorasaurus v.1.0<br><span style="font-size:0.7em"><em>28.7 kB (57 hits)</em></span></div><div style="clear: both;"></div></p>
<div>
<div style="clear: left; font-size: 0.8em;"><em>Code zum markieren einmal anklicken <a href="#" onclick="selectThis(this.parentNode.parentNode.parentNode.getElementsByTagName('div')[1]);buildAppleScriptLink();">Code im Skript-Editor öffnen</a></em></div>
<div class="hubionmac_codebox" onclick="selectThis(this);">
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; color: #5e6161">--04.07.2010 hubionmac.com</p>
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; color: #5e6161">--Tested with Mac OS 10.6.4<span class="Apple-converted-space"> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; color: #5e6161">--Sonorasaurus File Upload Droplet</p>
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana; color: #3b9120"><span style="color: #000000"><b>on</b> </span><span style="color: #2832f9"><b>open</b></span><span style="color: #000000"> </span>these</p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><b>tell</b> <span style="color: #2832f9"><i>application</i></span> "Finder"</p>
<p style="margin: 0.0px 0.0px 0.0px 117.8px; text-indent: -117.8px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>set</b> <span style="color: #3b9120">myname</span> <b>to</b> <span style="color: #8c27d6">name</span> <b>of</b> (<span style="color: #172fb9"><b>path to</b></span> <b>me</b>)</p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><b>end</b> <b>tell</b></p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana; color: #8c27d6"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span><b>set</b> </span>AppleScript<span style="color: #000000">'s </span>text item delimiters<span style="color: #000000"> <b>to</b> "Upload mp3s to "</span></p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><b>set</b> <span style="color: #3b9120">ipad_ip</span> <b>to</b> <span style="color: #2832f9"><i>text item</i></span> 2 <b>of</b> <span style="color: #3b9120">myname</span></p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana; color: #8c27d6"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span><b>set</b> </span>AppleScript<span style="color: #000000">'s </span>text item delimiters<span style="color: #000000"> <b>to</b> ".app"</span></p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><b>set</b> <span style="color: #3b9120">ipad_ip</span> <b>to</b> <span style="color: #2832f9"><i>text item</i></span> 1 <b>of</b> <span style="color: #3b9120">ipad_ip</span></p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana; color: #8c27d6"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span><b>set</b> </span>AppleScript<span style="color: #000000">'s </span>text item delimiters<span style="color: #000000"> <b>to</b> ""</span></p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><b>set</b> <span style="color: #3b9120">server_address</span> <b>to</b> "http://" &amp; <span style="color: #3b9120">ipad_ip</span> &amp; ":8888"</p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><b>repeat</b> <b>with</b> <span style="color: #3b9120">this</span> <b>in</b> <span style="color: #3b9120">these</span></p>
<p style="margin: 0.0px 0.0px 0.0px 117.8px; text-indent: -117.8px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>set</b> <span style="color: #3b9120">this_x</span> <b>to</b> <span style="color: #8c27d6">POSIX path</span> <b>of</b> (<span style="color: #3b9120">this</span> <b>as</b> <span style="color: #2832f9"><i>alias</i></span>)</p>
<p style="margin: 0.0px 0.0px 0.0px 117.8px; text-indent: -117.8px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>set</b> <span style="color: #3b9120">this_file</span> <b>to</b> <span style="color: #172fb9"><b>do shell script</b></span> "basename " &amp; <span style="color: #8c27d6">quoted form</span> <b>of</b> <span style="color: #3b9120">this_x</span></p>
<p style="margin: 0.0px 0.0px 0.0px 117.8px; text-indent: -117.8px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>if</b> <span style="color: #3b9120">this_file</span> <b>ends with</b> ".mp3" <b>then</b></p>
<p style="margin: 0.0px 0.0px 0.0px 157.1px; text-indent: -157.2px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>set</b> <span style="color: #3b9120">this_dir</span> <b>to</b> <span style="color: #172fb9"><b>do shell script</b></span> "dirname " &amp; <span style="color: #8c27d6">quoted form</span> <b>of</b> <span style="color: #3b9120">this_x</span></p>
<p style="margin: 0.0px 0.0px 0.0px 157.1px; text-indent: -157.2px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><span style="color: #172fb9"><b>do shell script</b></span> "cd " &amp; <span style="color: #8c27d6">quoted form</span> <b>of</b> <span style="color: #3b9120">this_dir</span> &amp; ";curl -F \"file=@" &amp; <span style="color: #3b9120">this_file</span> &amp; "\" -F \"button=Upload\" " &amp; <span style="color: #3b9120">server_address</span></p>
<p style="margin: 0.0px 0.0px 0.0px 117.8px; text-indent: -117.8px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><span class="Apple-tab-span" style="white-space:pre">	</span><b>end</b> <b>if</b></p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana"><span class="Apple-tab-span" style="white-space:pre">	</span><b>end</b> <b>repeat</b></p>
<p style="margin: 0.0px 0.0px 0.0px 78.5px; text-indent: -78.6px; font: 12.0px Verdana; color: #172fb9"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">	</span></span><b>display dialog</b><span style="color: #000000"> "finished" </span>giving up after<span style="color: #000000"> 4</span></p>
<p style="margin: 0.0px 0.0px 0.0px 39.2px; text-indent: -39.3px; font: 12.0px Verdana"><b>end</b> <span style="color: #2832f9"><b>open</b></span></p>
</div>
</div>
<h3  class="related_post_title">Ähnliche Themen</h3><ul class="related_post"><li>April 26, 2010 -- <a href="http://hubionmac.com/wordpress/2010/04/2183/" title=";-)">;-)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://hubionmac.com/wordpress/2010/07/batch-upload-fur-sonorasaurus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.webloc vs .url -&gt; Weburl Verweise</title>
		<link>http://hubionmac.com/wordpress/2010/06/webloc-vs-url-weburl-verweise/</link>
		<comments>http://hubionmac.com/wordpress/2010/06/webloc-vs-url-weburl-verweise/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 09:28:00 +0000</pubDate>
		<dc:creator>hubi</dc:creator>
				<category><![CDATA[Nice2Know]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[pure text]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[webloc]]></category>

		<guid isPermaLink="false">http://hubionmac.com/wordpress/2010/05/webloc-vs-url-weburl-verweise/</guid>
		<description><![CDATA[Laut diesem Thread bei Stack Overflow kann man .webloc Dateien neben der Variante Drag&#38;Drop auch von Hand schreiben und zwar im XML-Format seit Mac OS 10.3. Eine besonders kurze und wohl auch universellere Variante ist das .url Format: Code zum markieren einmal anklicken [InternetShortcut] URL=http://www.apple.com/ &#160; Wichtig dabei ist dass, die Datei auf 3 Zeilen [...]]]></description>
			<content:encoded><![CDATA[<p>Laut diesem <a href="http://stackoverflow.com/questions/146575/crafting-webloc-file" target="_blank">Thread</a> bei Stack Overflow kann man .webloc Dateien neben der Variante Drag&amp;Drop auch von Hand schreiben und zwar im XML-Format seit Mac OS 10.3. Eine besonders kurze und wohl auch universellere Variante ist das .url Format:
<div>
<div style="clear: left; font-size: 0.8em;"><em>Code zum markieren einmal anklicken </em></div>
<div class="hubionmac_codebox" onclick="selectThis(this);">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">[InternetShortcut]</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">URL=http://www.apple.com/</p>
<p>&nbsp;
</p>
</div>
</div>
<p>Wichtig dabei ist dass, die Datei auf 3 Zeilen besteht, also die letzte leer ist.</p>
<h3  class="related_post_title">Ähnliche Themen</h3><ul class="related_post"><li>February 12, 2010 -- <a href="http://hubionmac.com/wordpress/2010/02/und-wie-baue-ich-mir-meine-linkliste/" title="Und wie baue ich mir meine Linkliste?">Und wie baue ich mir meine Linkliste?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://hubionmac.com/wordpress/2010/06/webloc-vs-url-weburl-verweise/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Webdev: Webkit Transition Beispiel</title>
		<link>http://hubionmac.com/wordpress/2010/05/webdev-webkit-transition-beispiel/</link>
		<comments>http://hubionmac.com/wordpress/2010/05/webdev-webkit-transition-beispiel/#comments</comments>
		<pubDate>Mon, 31 May 2010 02:52:21 +0000</pubDate>
		<dc:creator>hubi</dc:creator>
				<category><![CDATA[webdev]]></category>
		<category><![CDATA[beispiel]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://hubionmac.com/wordpress/?p=2234</guid>
		<description><![CDATA[Ich wollte für eine kleine Web-Anwendung die ich gerade schreibe einen Effekt nutzen, den ich auf der Seite von The Wonderfactory gesehen habe. Dort kann man auf der Seite die Schlagzeilen durchblättern, was vermutlich mit der selben Technik umgesetzt wurde, die die auch für die HTML-5 Ausgabe der Sports-Illustrated genutzt haben. Ich bin nicht so [...]]]></description>
			<content:encoded><![CDATA[<p>Ich wollte für eine kleine Web-Anwendung die ich gerade schreibe einen Effekt nutzen, den ich auf der Seite von <a href="http://www.thewonderfactory.com/" target="_blank">The Wonderfactory</a> gesehen habe. Dort kann man auf der Seite die Schlagzeilen durchblättern, was vermutlich mit der selben Technik umgesetzt wurde, die die auch für die HTML-5 Ausgabe der Sports-Illustrated genutzt haben.<br />
Ich bin nicht so ein Freund von aufgeblähten JavaScript-Bibliotheken (zu aufgebläht für meine Seite) und diesen setTimeout-Pfusch den man nutzt, um etwas Bewegung in eine Seite zu bringen. Deshalb und weil die Seite die ich gerade schreibe wohl hauptsächlich von Webkit-Browsern angesteuert werden dürfte, habe ich mir so eine Wisch-Effekt-Box mit dem ein bissle JavaScript und etwas mehr CSS zusammengebaut. Unterm Strich können diese <a href="http://webkit.org/blog/324/css-animation-2/" target="_blank">Webkit-Transition-Effekte</a> einiges an JavaScript-Code überflüssig machen und die Seite läuft damit auch problemlos auf dem iPhone =)<br />
Und die Animation soll angeblich auch von der Hardware beschleunigt werden.<br />
<a href="http://hubionmac.com/downloads/softwarschmiede/skimbox.html" target="_blank">Link zur Demo Seite</a></p>
<h3  class="related_post_title">Ähnliche Themen</h3><ul class="related_post"><li>February 22, 2010 -- <a href="http://hubionmac.com/wordpress/2010/02/paint-mit-html/" title="Paint mit HTML">Paint mit HTML</a></li><li>September 2, 2009 -- <a href="http://hubionmac.com/wordpress/2009/09/httpwww-selectorgadget-com/" title="CSS-Selector">CSS-Selector</a></li><li>May 5, 2010 -- <a href="http://hubionmac.com/wordpress/2010/05/safari-offne-alle-javascript-links/" title="Safari: Öffne alle JavaScript Links">Safari: Öffne alle JavaScript Links</a></li><li>May 4, 2010 -- <a href="http://hubionmac.com/wordpress/2010/05/nervige-overlays-auf-website-entfernen/" title="Nervige Overlays auf Website entfernen">Nervige Overlays auf Website entfernen</a></li><li>April 13, 2010 -- <a href="http://hubionmac.com/wordpress/2010/04/youtube-downloadlink-fur-videos/" title="Youtube Downloadlink für Videos">Youtube Downloadlink für Videos</a></li><li>March 13, 2010 -- <a href="http://hubionmac.com/wordpress/2010/03/javascriptapplescript-link-bauen-mit-text-aus-div-element/" title="JavaScript:AppleScript Link bauen mit Text aus div-Element">JavaScript:AppleScript Link bauen mit Text aus div-Element</a></li><li>February 14, 2010 -- <a href="http://hubionmac.com/wordpress/2010/02/link-liste-zum-selber-bauen/" title="Link Liste zum selber bauen">Link Liste zum selber bauen</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://hubionmac.com/wordpress/2010/05/webdev-webkit-transition-beispiel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I am NOT REWE!</title>
		<link>http://hubionmac.com/wordpress/2010/05/i-am-not-rewe/</link>
		<comments>http://hubionmac.com/wordpress/2010/05/i-am-not-rewe/#comments</comments>
		<pubDate>Sat, 22 May 2010 09:49:20 +0000</pubDate>
		<dc:creator>hubi</dc:creator>
				<category><![CDATA[NERV!]]></category>
		<category><![CDATA[gerhinwäsche]]></category>
		<category><![CDATA[Musik]]></category>
		<category><![CDATA[rewe]]></category>
		<category><![CDATA[song]]></category>

		<guid isPermaLink="false">http://hubionmac.com/wordpress/?p=2228</guid>
		<description><![CDATA[Ich kaufe mehrmal die Woche da ein, trotz der kostenpflichtigen Plastik-Tüten mit fett Werbung drauf, aber diese eingedeutschte Audio-Gehirn-Wäsche geht mir jetzt endgültig auf den Sack. Ab jetzt nur noch mit Mp3-Player und Jute-Beutel! Abzukassieren und dann noch den Leuten ohne Ausweichmöglichkeit vorzuträllern (Man kann sich die Ohren kaum zuhalten, wenn man sein Körpchen trägt.), [...]]]></description>
			<content:encoded><![CDATA[<p>Ich kaufe mehrmal die Woche da ein, trotz der kostenpflichtigen Plastik-Tüten mit fett Werbung drauf, aber diese eingedeutschte Audio-Gehirn-Wäsche geht mir jetzt endgültig auf den Sack. Ab jetzt nur noch mit Mp3-Player und Jute-Beutel! Abzukassieren und dann noch den Leuten ohne Ausweichmöglichkeit vorzuträllern (Man kann sich die Ohren kaum zuhalten, wenn man sein Körpchen trägt.), dass REWE toll ist und man dazu gehören sollen.... NOPE!<br />
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/hMBJDQjX0OE&#038;hl=de_DE&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/hMBJDQjX0OE&#038;hl=de_DE&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
<p>dann schon lieber</p>
<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/NS99YqVZmWM&#038;hl=de_DE&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/NS99YqVZmWM&#038;hl=de_DE&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
<h3  class="related_post_title">Ähnliche Themen</h3><ul class="related_post"><li>No Related Post</li></ul>]]></content:encoded>
			<wfw:commentRss>http://hubionmac.com/wordpress/2010/05/i-am-not-rewe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
