{"id":5757,"date":"2015-06-19T17:52:01","date_gmt":"2015-06-19T15:52:01","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?page_id=5757"},"modified":"2024-03-15T09:28:53","modified_gmt":"2024-03-15T08:28:53","slug":"twtransformer","status":"publish","type":"page","link":"http:\/\/blog.wenzlaff.de\/?page_id=5757","title":{"rendered":"Mac OS X: TWTransformer &#8211; CSV to CSV"},"content":{"rendered":"<p>Manchmal will man auf dem Mac OS X Daten aus einer CSV Datei umformen oder transformieren. <\/p>\n<p>Z.B. hat man drei Spalten mit Namen und Vorname und auch die E-Mail Adresse in einer CSV Datei vorliegen.<br \/>\nWie kann man nun in jede Zeile einen mailto link z.B. <\/p>\n<pre class=\"lang:default decode:true \" >\r\n&lt;a href=\"mailto:e-mail@no-spam.de\"&gt;Thomas Wenzlaff&lt;\/a&gt;<\/pre>\n<p>einf\u00fcgen?<\/p>\n<p>Oder man hat eine Adressdatei mit lan, lon und Namen und ben\u00f6tigt einen Geo-Link  in der Form:<\/p>\n<pre class=\"lang:default decode:true \" >&lt;a href=\"http:\/\/www.openstreetmap.org\/?mlat=52.43388&amp;mlon=09.75783&amp;zoom=16&amp;layers=B00FTF\"&gt;Paracelsus Klinik Langenhagen&lt;\/a&gt;<\/pre>\n<p>Hier mal ein Beispiel aus der Praxis. Die Reiselinks auf die Karte k\u00f6nnen so erzeugt werden.<\/p>\n<p>Daf\u00fcr und f\u00fcr noch viel mehr ist der TWTransformer. Er kann aus drei Spalten je nach Template eine neue Datenspalte erzeugen.<\/p>\n<p>Die orginal CSV Datei wird nicht ver\u00e4ndert. An die CSV-Ausgabe Datei wir eine neue Spalte erg\u00e4nzt.<\/p>\n<p>Der TWTransformer ist also ein CSV to CSV Transformer mit einer CSV-Profildatei die den Transformationsprozess beschreibt. <\/p>\n<p>Hier mal eine Profil Datei aus dem Profil-Verzeichnis als Beispiel:<\/p>\n<pre class=\"lang:default decode:true \" >\r\n#\r\n#  make-mail-to-link.csv (c) 2015 Thomas Wenzlaff www.wenzlaff.de\r\n#\r\n#  Erzeugt eine mailto link aus zwei drei vorhandenen Spalten.\r\n#  Es werden immer drei Spalten eingelesen die angegeben werden.\r\n#  Die Ausgangsdatei wird dann um die neue Zielspalte erg\u00e4nzt.\r\n#\r\n#  Kommentare die mit # Starten werden \u00fcberlesen.\r\n#  Trennzeichen ist das Semikolon\r\n#  Spalten fangen bei 0 an zu z\u00e4hlen\r\n#\r\n#\r\n#  Zeilennummer mit der Pos. der Spalten: E-Mail;Vorname;Name;\r\n4;2;1\r\n#\r\n#  Zeile der Format String, mit der Reihenfolge wie oben, wird von links nach rechts eingesetzt z.B. 4;2;1\r\n&lt;a href=\"mailto:%s\"&gt;%s %s&lt;\/a&gt;\r\n<\/pre>\n<p><strong>Installation<\/strong><\/p>\n<p>Java muss mind. in Version 1.6 <a href=\"https:\/\/support.apple.com\/de-de\/106384\" target=\"_blank\" rel=\"noopener\">installiert<\/a> sein.<\/p>\n<p>Download des TWTransformer.dmg<\/p>\n<p>Mit Doppelklick starten.<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.28.21.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.28.21.png\" alt=\"TWTransformer\" width=\"770\" height=\"406\" class=\"aligncenter size-full wp-image-5760\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.28.21.png 770w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.28.21-300x158.png 300w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Die drei Verzeichnisse und das Programm auf den Schreibtisch oder den Programmordner ziehen.<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.30.03.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.30.03.png\" alt=\"Install\" width=\"292\" height=\"240\" class=\"aligncenter size-full wp-image-5761\" \/><\/a><\/p>\n<p>Programm <strong>twtransformer.app<\/strong> starten mit doppelklick.<br \/>\n<a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.35.37.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.35.37.png\" alt=\"Programm TWTransformer\" width=\"750\" height=\"439\" class=\"aligncenter size-full wp-image-5762\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.35.37.png 750w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.35.37-300x176.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/a><\/p>\n<p>Nun wollen wir eine erste CSV Datei umwandeln. Wir w\u00e4hlen aus dem <strong>eingabe<\/strong> Verzeichnis die <strong>adressen.csv<\/strong> und f\u00fcr das Profil die <strong>profile\/make-mail-to-link.csv<\/strong> aus und klicken auf <strong>Transform<\/strong>.<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.39.20.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.39.20.png\" alt=\"Transform verz\" width=\"851\" height=\"541\" class=\"aligncenter size-full wp-image-5763\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.39.20.png 851w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.39.20-300x191.png 300w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Es \u00f6ffnet sich dann das Ergebnis in einem neuen Fenster:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.39.36.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.39.36.png\" alt=\"Ergebnis\" width=\"1261\" height=\"587\" class=\"aligncenter size-full wp-image-5764\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.39.36.png 1261w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.39.36-300x140.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.39.36-1024x477.png 1024w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.39.36-900x419.png 900w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Nach dem schlie\u00dfen, finden wir die Datei im <strong>eingabe<\/strong> Verzeichnis.<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.39.45.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.39.45.png\" alt=\"Erg. Datei\" width=\"851\" height=\"541\" class=\"aligncenter size-full wp-image-5765\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.39.45.png 851w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2015\/06\/Bildschirmfoto-2015-06-20-um-18.39.45-300x191.png 300w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Wer noch n\u00fctzliche Profile erstellt hat, kann sie hier gerne als Kommentar hinterlegen.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Manchmal will man auf dem Mac OS X Daten aus einer CSV Datei umformen oder transformieren. Z.B. hat man drei Spalten mit Namen und Vorname und auch die E-Mail Adresse in einer CSV Datei vorliegen. Wie kann man nun in jede Zeile einen mailto link z.B. &lt;a href=&#8220;mailto:e-mail@no-spam.de&#8220;&gt;Thomas Wenzlaff&lt;\/a&gt; einf\u00fcgen? Oder man hat eine Adressdatei &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/blog.wenzlaff.de\/?page_id=5757\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eMac OS X: TWTransformer &#8211; CSV to CSV\u201c <\/span>weiterlesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"class_list":["post-5757","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/pages\/5757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5757"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/pages\/5757\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}