
<?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 &#187; spotlight</title>
	<atom:link href="http://hubionmac.com/wordpress/tag/spotlight/feed/" rel="self" type="application/rss+xml" />
	<link>http://hubionmac.com/wordpress</link>
	<description></description>
	<lastBuildDate>Wed, 08 Sep 2010 17:22:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>AppleScript: Länge einer Audio-Datei auslesen</title>
		<link>http://hubionmac.com/wordpress/2010/02/applescript-lange-einer-audio-datei-auslesen/</link>
		<comments>http://hubionmac.com/wordpress/2010/02/applescript-lange-einer-audio-datei-auslesen/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 21:10:56 +0000</pubDate>
		<dc:creator>hubi</dc:creator>
				<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[audio files]]></category>
		<category><![CDATA[length]]></category>
		<category><![CDATA[spotlight]]></category>

		<guid isPermaLink="false">http://hubionmac.com/wordpress/?p=1933</guid>
		<description><![CDATA[Spotlight kann so etwas wunderbar und noch dazu bei verschiedensten Audio-Formaten: Code zum markieren einmal anklicken Code im Skript-Editor öffnen set aFile to choose file tell application "Finder" to set filename to name of aFile set AppleScript's text item delimiters to " = " set duration to text item 2 of (do shell script "mdls [...]]]></description>
			<content:encoded><![CDATA[<p>Spotlight kann so etwas wunderbar und noch dazu bei verschiedensten Audio-Formaten:</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 41.6px; text-indent: -41.6px; font: 12.0px Verdana; color: #2000c0"><span style="color: #000000"><b>set</b> </span><span style="color: #2d9600">aFile</span><span style="color: #000000"> <b>to</b> </span><b>choose file</b></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><b>tell</b> <span style="color: #3300ff"><i>application</i></span> "Finder" <b>to</b> <b>set</b> <span style="color: #2d9600">filename</span> <b>to</b> <span style="color: #9200de">name</span> <b>of</b> <span style="color: #2d9600">aFile</span></p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; color: #9200de"><span style="color: #000000"><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 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><b>set</b> <span style="color: #2d9600">duration</span> <b>to</b> <span style="color: #3300ff"><i>text item</i></span> 2 <b>of</b> (<span style="color: #2000c0"><b>do shell script</b></span> "mdls -name kMDItemDurationSeconds " &amp; <span style="color: #9200de">quoted form</span> <b>of</b> (<span style="color: #9200de">POSIX path</span> <b>of</b> <span style="color: #2d9600">aFile</span>))</p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; color: #9200de"><span style="color: #000000"><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 41.6px; text-indent: -41.6px; font: 12.0px Verdana; color: #2d9600"><span style="color: #000000"><b>set</b> </span>total_seconds<span style="color: #000000"> <b>to</b> </span><span style="color: #3300ff"><i>text item</i></span><span style="color: #000000"> 1 <b>of</b> </span>duration</p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana; color: #9200de"><span style="color: #000000"><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 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><b>set</b> <span style="color: #2d9600">showsec</span> <b>to</b> (<span style="color: #2d9600">total_seconds</span> <b>as</b> <span style="color: #3300ff"><i>integer</i></span>) <b>mod</b> 60</p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><b>set</b> <span style="color: #2d9600">showmin</span> <b>to</b> (<span style="color: #2d9600">total_seconds</span> <b>as</b> <span style="color: #3300ff"><i>integer</i></span>) <b>div</b> 60</p>
<p style="margin: 0.0px 0.0px 0.0px 41.6px; text-indent: -41.6px; font: 12.0px Verdana"><span style="color: #2000c0"><b>display dialog</b></span> <span style="color: #2d9600">filename</span> &amp; <span style="color: #9200de">return</span> &amp; <span style="color: #9200de">return</span> &amp; "Duration:" &amp; <span style="color: #9200de">return</span> &amp; <span style="color: #2d9600">showmin</span> &amp; "<span style="font: 12.0px Courier; color: #a30093"> </span>min " &amp; <span style="color: #2d9600">showsec</span> &amp; " sec"</p>
</div>
</div>
<h3  class="related_post_title">Ähnliche Themen</h3><ul class="related_post"><li>September 3, 2010 -- <a href="http://hubionmac.com/wordpress/2010/09/mail-angehangte-pdfs-direkt-drucken-als-regel/" title="Mail: angehängte PDFs direkt drucken als Regel&#8230;">Mail: angehängte PDFs direkt drucken als Regel&#8230;</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>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>April 26, 2010 -- <a href="http://hubionmac.com/wordpress/2010/04/mac-adressen-filter-der-airport-station-per-script-befullen/" title="MAC-Adressen Filter der Airport-Station per Script befüllen">MAC-Adressen Filter der Airport-Station per Script befüllen</a></li><li>April 25, 2010 -- <a href="http://hubionmac.com/wordpress/2010/04/zugehorige-zeilen-zusammenfuhren/" title="Zugehörige Zeilen zusammenführen">Zugehörige Zeilen zusammenführen</a></li><li>April 24, 2010 -- <a href="http://hubionmac.com/wordpress/2010/04/hubis-address-book-scripts/" title="Hubi&#8217;s Address Book Scripts">Hubi&#8217;s Address Book Scripts</a></li><li>April 16, 2010 -- <a href="http://hubionmac.com/wordpress/2010/04/text-encoding-in-datei-andern/" title="Text Encoding in Datei ändern">Text Encoding in Datei ändern</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://hubionmac.com/wordpress/2010/02/applescript-lange-einer-audio-datei-auslesen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
