<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://planet.ubuntu-fr.org/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
  <title>Planet Ubuntu Francophone - scripts</title>
  <link>http://planet.ubuntu-fr.org/</link>
  <description></description>
  <language>fr</language>
  <pubDate>Wed, 08 Oct 2008 06:28:41 +0200</pubDate>
  <copyright></copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Renommer massivement en 2 clics des fichiers ou dossiers avec Nautilus</title>
    <link>http://planet.ubuntu-fr.org/post/2007/08/18/Renommer-massivement-en-2-clics-des-fichiers-ou-dossiers-avec-Nautilus</link>
    <guid isPermaLink="false">urn:md5:a324dc6cd06a1da170f0e0524f9f5455</guid>
    <pubDate>Sat, 18 Aug 2007 08:13:00 +0200</pubDate>
    <dc:creator>Administrateur</dc:creator>
        <category>Planet</category>
        <category>Accueil</category><category>gnome</category><category>libre</category><category>Logiciels</category><category>scripts</category><category>Ubuntu</category><category>Ubuntu 7.04</category>    
    <description>    Pour faire suite à &lt;a href=&quot;http://blog.racoon97.net/index.php?2007/02/05/75-gprenamer-20-est-sorti&quot;&gt;ce billet&lt;/a&gt; de &lt;a href=&quot;http://blog.racoon97.net&quot;&gt;Racoon&lt;/a&gt; qui présente &lt;a href=&quot;http://gprename.sourceforge.net/&quot;&gt;GPRename&lt;/a&gt;, voila une petite mise à jour de sa procédure d'installation en version 2.4 sous Ubuntu et la façon de l'intégrer simplement dans Nautilus via les &lt;a href=&quot;http://g-scripts.sourceforge.net/&quot;&gt;Nautilus-scripts&lt;/a&gt; ou les &lt;a href=&quot;http://www.grumz.net/index.php?q=taxonomy/term/2/9&quot;&gt;Nautilus-actions&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;
&lt;h2&gt;Présentation :&lt;/h2&gt;
&lt;table&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://gprename.sourceforge.net/&quot;&gt;&lt;img style=&quot;margin: 0 1em 1em 0; float: left;&quot; alt=&quot;&quot; src=&quot;http://www.taltan.fr/public/images/gprename.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;http://gprename.sourceforge.net/&quot;&gt;GPRename&lt;/a&gt; est un ensemble de scripts &lt;a href=&quot;http://fr.wikipedia.org/wiki/Perl_%28langage%29&quot;&gt;perl&lt;/a&gt; sous licence &lt;a href=&quot;http://fr.wikipedia.org/wiki/GNU/GPL&quot;&gt;GNU/GPL&lt;/a&gt; qui permet, via une interface graphique en &lt;a href=&quot;http://fr.wikipedia.org/wiki/GTK&quot;&gt;GTK2&lt;/a&gt;, de renommer massivement des fichiers ou des dossiers en leur appliquant un traitement particulier.&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;
&lt;td&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;h2&gt;Installation :&lt;/h2&gt;
&lt;h4&gt;Dépendances :&lt;/h4&gt;
&lt;pre&gt;sudo apt-get install gettext libgtk-perl&lt;/pre&gt;&lt;h4&gt;GPRename 2.4 :&lt;/h4&gt;
Télécharger l'archive
&lt;a href=&quot;http://downloads.sourceforge.net/gprename/gprename-2.4.tar.bz2&quot;&gt;gprename-2.4.tar.bz2&lt;/a&gt; puis la décompresser :&lt;br /&gt;&lt;pre&gt;tar xvjf gprename-2.4.tar.bz2&lt;/pre&gt;Dans le dossier gprename-2.4&lt;br /&gt;&lt;pre&gt;cd gprename-2.4&lt;br /&gt;sudo make install&lt;/pre&gt;Voila c'est installé, vous pouvez lancer GPrename en invoquant la commande gprename ou à partir menu Accessoires / GPRename&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.taltan.fr/public/images/gprename_creen.png&quot;&gt;&lt;img style=&quot;margin: 0 auto; display: block;&quot; alt=&quot;&quot; src=&quot;http://www.taltan.fr/public/images/.gprename_creen_s.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Pour les adeptes du copier / coller, la méthode installation en une ligne de commande :&lt;br /&gt;&lt;pre&gt;sudo apt-get install gettext libgtk-perl &amp;amp;&amp;amp; wget http://downloads.sourceforge.net/gprename/gprename-2.4.tar.bz2 &amp;amp;&amp;amp; tar -xvjf gprename-2.4.tar.bz2 &amp;amp;&amp;amp; cd gprename-2.4 &amp;amp;&amp;amp; sudo make install&lt;/pre&gt;&lt;h2&gt;Intégration dans Nautilus :&lt;/h2&gt;
&lt;h4&gt;Via Nautilus-actions :&lt;/h4&gt;
Si ce n'est pas déja fait, installer le paquet nautilus-actions&lt;br /&gt;&lt;pre&gt;apt-get install nautilus-actions&lt;/pre&gt;Importer l'action &lt;a href=&quot;http://www.grumz.net/?q=node/294&quot;&gt;Batch Rename&lt;/a&gt; (fichier &lt;a href=&quot;http://www.grumz.net/?q=system/files&amp;amp;file=config_38643db8-62c7-44e1-96ee-98fc9360a2cd.schemas&quot;&gt;config_38643db8-62c7-44e1-96ee-98fc9360a2cd.schemas&lt;/a&gt;), menu Système / Préférences / Configuration des actions Nautilus / Importer. Il suffira par la suite, après avoir sélectionner les fichiers à renommer, de faire un clic droit / Batch Rename&lt;br /&gt;&lt;h4&gt;Via Nautilus-scripts :&lt;/h4&gt;
Créer le script bash GPrename.sh :&lt;br /&gt;&lt;pre&gt;#!/bin/bash&lt;br /&gt;gprename &quot;$1&quot;&lt;/pre&gt;Le copier dans le dossier ~/.gnome2/nautilus-scripts puis le rendre exécutable&lt;br /&gt;&lt;pre&gt;cp GPrename.sh ~/.gnome2/nautilus-scripts&lt;br /&gt;chmod +x ~/.gnome2/nautilus-scripts/GPrename.sh&lt;/pre&gt;Il suffira par la suite, après avoir sélectionner les fichiers à renommer, de faire un clic droit / Scripts / GPrename.sh&lt;br /&gt;&lt;h2&gt;Références :&lt;/h2&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://gprename.sourceforge.net/&quot;&gt;Site officiel de GPRename&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://sourceforge.net/project/showfiles.php?group_id=40094&amp;amp;package_id=32230&quot;&gt;Page de téléchargement&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://gprename.sourceforge.net/screenshot.php&quot;&gt;ScreenShot&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://doc.ubuntu-fr.org/gprename&quot;&gt;Documentation sur le Wiki Ubuntu-fr&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Sur le &lt;a href=&quot;http://blog.racoon97.net&quot;&gt;Blog de Racoon&lt;/a&gt; : &lt;a href=&quot;http://blog.racoon97.net/index.php?2006/08/28/42-le-renommage-massif-de-fichiers&quot;&gt;GPRenamer : le renommage massif de fichiers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Sur le &lt;a href=&quot;http://blog.racoon97.net/&quot;&gt;Blog de Racoon&lt;/a&gt; : &lt;a href=&quot;http://blog.racoon97.net/index.php?2007/02/05/75-gprenamer-20-est-sorti&quot;&gt;GPRename 2.0 est sorti&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description>
    
    
    
      </item>
    
  <item>
    <title>Script de renommage de photos selon les données EXIF</title>
    <link>http://planet.ubuntu-fr.org/post/2007/07/17/Script-de-renommage-de-photos-selon-les-donnees-EXIF</link>
    <guid isPermaLink="false">urn:md5:fbd2e05fc401fa1747c620f0aca8753e</guid>
    <pubDate>Tue, 17 Jul 2007 09:14:00 +0000</pubDate>
    <dc:creator>Administrateur</dc:creator>
        <category>Planet</category>
        <category>Accueil</category><category>gnome</category><category>libre</category><category>Linux</category><category>photos</category><category>PhpWebGallery</category><category>scripts</category><category>Ubuntu</category>    
    <description>        &lt;p&gt;Avec les photos numériques on ne compte pas, on prend des dizaines (voir des centaines) de photos puis on les importe sur le &lt;a href=&quot;http://fr.wikipedia.org/wiki/Compatible_PC&quot;&gt;PC&lt;/a&gt; pour les trier. Personnellement j'utilise &lt;a href=&quot;http://gthumb.sourceforge.net/&quot;&gt;gThumb&lt;/a&gt; car il est léger, simple à utiliser, n'est pas usine à gaz, dispose de fonctionnalités assez avancées et en plus est intégré nativement dans Ubuntu.
Le premier de ces tris est le renommage, j'ai l'habitude de renommer mes photos en fonction de la date de prise de vue (+ une numérotation) ce qui permet par la suite d'effectuer un tri chronologique dans l'explorateur de fichiers et d'avoir un nom unique.&lt;/p&gt;


&lt;p&gt;il est possible de renommer massivement des photos en fonction des données &lt;a href=&quot;http://fr.wikipedia.org/wiki/Exif&quot;&gt;EXIF&lt;/a&gt; avec gThumb mais le meilleur résultat que j'ai pu en tirer est un nom de fichier sous la forme &lt;strong&gt;2006-11-04--19.41.56_007.jpg&lt;/strong&gt;.  C'est presque le résultat attendu sauf que je n'ai pas trouvé le moyen d'enlever le double tiret et les secondes qui sont superflus. Voila le pourquoi de ce script, utilisé via les &lt;a href=&quot;http://www.taltan.fr/post/2006/06/07/14-les-nautilus-scripts&quot;&gt;scripts nautilus&lt;/a&gt;, en deux clics il permet de renommer une série de photos sous la forme &lt;strong&gt;2006-11-04_19.41_007.jpg&lt;/strong&gt;&lt;/p&gt;


&lt;h4&gt;Dépendances&amp;nbsp;:&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Nécessite le paquet &lt;a href=&quot;http://doc.ubuntu-fr.org/imagemagick&quot;&gt;imagemagick&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Nécessite le paquet &lt;a href=&quot;http://www.agu3l.org/article.php3?id_article=25&quot;&gt;zenity&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;$ sudo apt-get install imagemagick zenity&lt;/pre&gt;


&lt;h4&gt;Script exif_photos_rename_v1.1.sh&amp;nbsp;:&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;27/07/07 - &lt;a href=&quot;http://www.taltan.fr/public/dl/exif_photos_rename_v1.1.sh&quot;&gt;v1.1&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Réorganisation&lt;/li&gt;
&lt;li&gt;Choix du début de numérotation, par défaut à 1&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;15/07/07  - &lt;a href=&quot;http://www.taltan.fr/public/dl/exif_photos_rename_v1.0.sh&quot;&gt;v1.0&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Création&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;code class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Taltan - http://www.taltan.fr -&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Script exif_photos_rename_v1.1.sh&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Licence : GNU / GPL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Renomme les photos selon les données EXIF sous la forme :&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# ${aa}-${mm}-${jj}_${hh}.${min}_${numero}.ext&amp;nbsp; =&amp;gt; ex : 2006-11-04_19.41_007.jpg&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Fonctionne pour une numérotation de 001 à 999&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Dépendances&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; - Nécessite le paquet imagemagick : http://doc.ubuntu-fr.org/imagemagick&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; - Nécessite le paquet zenity&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; &amp;nbsp; =&amp;gt; sudo apt-get install imagemagick zenity&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# 15/07/07 - v1.0 - Création&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# 27/07/07 - v1.1 - Réorganisation&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Choix du début de numérotation, par défaut à 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## Variables&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;nb_param=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$#&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# nb de paramètres passés au script&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;erreur=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# initialisation du compteur d'erreurs à 0&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## Fonctions début de numérotation&lt;/span&gt;&lt;br /&gt;
début_numerot &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;numParam=&lt;/span&gt;`zenity --title &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Début de numérotation&amp;quot;&lt;/span&gt; --entry-&lt;span style=&quot;color: #0000ff;&quot;&gt;text=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;1&amp;quot;&lt;/span&gt; --entry --text &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Par défaut à 1, à modifier le cas échéant :&amp;quot;&lt;/span&gt;`&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt;&amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $? != &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# si fermeture&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $? -ne &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;amp;&amp;amp; &lt;span style=&quot;color: #000066;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# si annulation&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## Fonctions renommage des fichiers&lt;/span&gt;&lt;br /&gt;
rename_jpeg &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;for&lt;/span&gt; parametre &lt;span style=&quot;color: #b1b100;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$@&amp;quot;&lt;/span&gt;; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# pour chaque fichier selectionné&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;do&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# faire&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;old_name=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$parametre&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# on définie le nom du fichier actuel&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;date_time=&lt;/span&gt;`identify -format &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;%[EXIF:DateTime]&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$parametre&amp;quot;&lt;/span&gt;` &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# création de la variable date / heure de la photo (ex: 2006:11:04 19:41:30. )&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;extension=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$parametre&lt;/span&gt; | awk -F &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;.&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'{print $NF}'&lt;/span&gt;` &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# création de la variable extension du fichier (ex : .jpg)&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;aa=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$date_time&lt;/span&gt; | cut -d: -f1` &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# création de la variable année (ex : 2006)&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;mm=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$date_time&lt;/span&gt; | cut -d: -f2` &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# création de la variable mois (ex : 11)&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;jj=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$date_time&lt;/span&gt; | cut -d: -f3 | cut -c1&lt;span style=&quot;color: #cc66cc;&quot;&gt;-2&lt;/span&gt;` &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# création de la variable jour (ex : 04)&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;hh=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$date_time&lt;/span&gt; | cut -d: -f3 | cut -c4&lt;span style=&quot;color: #cc66cc;&quot;&gt;-5&lt;/span&gt;` &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# création de la variable heure (ex : 19)&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;min=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$date_time&lt;/span&gt; | cut -d: -f4` &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# création de la variable minute (ex: 41)&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# création de la variable numérotation&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; -gt &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;amp;&amp;amp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; -lt &lt;span style=&quot;color: #cc66cc;&quot;&gt;10&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# pour les paramètres 1 à 9&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;numero=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;00&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# rajouter 2 digit =&amp;gt; 001, 002, 003,..., 009&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; -gt &lt;span style=&quot;color: #cc66cc;&quot;&gt;9&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;amp;&amp;amp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; -lt &lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# pour les paramètres 10 à 99&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;numero=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# rajouter 1 digit =&amp;gt; 010, 011, 012,..., 099&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; -gt &lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; ; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# pour les paramètres supérieur à 100&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;numero=&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# ne pas rajouter de digit =&amp;gt; 100, 101, 102,...&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;new_nane=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;aa&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;-&lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;mm&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;-&lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;jj&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;_&lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;hh&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;min&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;_&lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;numero&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;extension&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;` &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# on définie le nouveau nom =&amp;gt; 2006-11-04_19.41_num.jpg&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cp &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$old_name&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${new_nane}&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# on renomme le fichier en le copiant&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $? = &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; ; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# si la copie a reussi &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${old_name} =&amp;gt; ${new_nane} .... OK&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rm -f &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$old_name&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# =&amp;gt; supprime le fichier original&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# si la copie a echoué&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Impossible de renommer $old_name .... NOK&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# =&amp;gt; message d'erreur&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;let&lt;/span&gt; $&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;erreur += &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# incrémentation du compteur d'erreur&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;let&lt;/span&gt; $&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;numParam += &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# incrémentation du numéro de paramètre&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;done&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;nb_renomme=&lt;/span&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$nb_param&lt;/span&gt; - &lt;span style=&quot;color: #0000ff;&quot;&gt;$erreur&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# création de la variable nombre de fichiers renommés&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;-----------------------------------------&amp;quot;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Fin de traitement : $# fichiers &amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;-----------------------------------------&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Fichiers renommes : $nb_renomme&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Fichiers en erreur : $erreur&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;-----------------------------------------&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;OK, vous pouvez fermer !&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## Traitement&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$#&amp;quot;&lt;/span&gt; -eq &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# si aucun fichier n'est selectionné =&amp;gt; mesage d'erreur&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; zenity --error --&lt;span style=&quot;color: #0000ff;&quot;&gt;title=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;error&amp;quot;&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;text=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Selectioner au moins 1 fichier&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
début_numerot&lt;br /&gt;
rename_jpeg &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$@&amp;quot;&lt;/span&gt; | zenity --text-info --title &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;exif_photos_rename&amp;quot;&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;width=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;500&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;500&lt;/span&gt;&lt;/code&gt;


&lt;h4&gt;Mise en place&amp;nbsp;:&lt;/h4&gt;


&lt;p&gt;Placer le script exif_photos_rename_v1.1.sh dans le dossier ~/.gnome2/nautilus-scripts, puis le rendre exécutable&lt;/p&gt;

&lt;pre&gt;$ sudo chmod +x ~/.gnome2/nautilus-scripts/exif_photos_rename_v1.1.sh&lt;/pre&gt;


&lt;h4&gt;Utilisation&amp;nbsp;:&lt;/h4&gt;


&lt;p&gt;Sélectionner les photos à traiter, puis clic droit / Scripts / exif_photos_rename.sh
&lt;a href=&quot;http://www.taltan.fr/public/images/exif_photos_rename_01.png&quot;&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/.exif_photos_rename_01_s.jpg&quot; alt=&quot;exif_photos_rename_01.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Cliquer sur Valider ou modifier le début de numérotation le cas échéant&amp;nbsp;:
&lt;img src=&quot;http://www.taltan.fr/public/images/exif_photos_rename_00.png&quot; alt=&quot;exif_photos_rename_00.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;


&lt;h4&gt;Résultat&amp;nbsp;:&lt;/h4&gt;

&lt;p&gt;&lt;a href=&quot;http://www.taltan.fr/public/images/exif_photos_rename_02.png&quot;&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/.exif_photos_rename_02_s.jpg&quot; alt=&quot;exif_photos_rename_02.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/exif_photos_rename_03.png&quot; alt=&quot;exif_photos_rename_03.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;NB&amp;nbsp;: _/!\_&lt;/strong&gt; Par &lt;a href=&quot;http://fr.wikipedia.org/wiki/Principe_de_pr%C3%A9caution&quot;&gt;principe de précaution&lt;/a&gt;, je vous conseille de commencer à utiliser un script qui, au final supprime ou modifie un fichier, sur une copie de vos photos, histoire de voir que tout se passe bien &lt;img src=&quot;http://www.taltan.fr/themes/default/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;</description>
    
    
    
      </item>
    
</channel>
</rss>
