Changement d’adresse(s) – mise a jour des emails corporate chez Orange France Telecom

Comme l’a récemment souligné Sébastien Crozier dans un post « à charge », le plan d’adressage email corporate de Orange (France Telécom) change une deuxième fois en 5 ans: / /

Indépendamment du débat sur le coût et les conséquences de ce changement pour l’opérateur, cette affaire va conduire de nombreux interlocuteurs d’Orange à (re)mettre à jour leurs carnets d’adresse.

Plusieurs centaines pour être précis dans mon cas, d’où le recours à AppleScript pour automatiser la mise à jour du domaine dans les adresses email. L’opération s’est effectuée sans encombre et je vais à nouveau pouvoir voir les photos de ceux qui m’écrivent dans !

Ci-joint le script permettant de faire la manipulation, n’hésitez pas à l’éditer si vous voulez conserver les « anciennes adresses », ni à vous en servir pour d’autres manipulations sur les emails de vos contacts. Inutile de rappeler qu’un backup de son Carnet d’Adresses est recommandé avant de lancer le script.

Il suffit de copier / coller le texte ci-dessous dans l’éditeur AppleScript et de le compiler :

<– couper ci-dessous –>

— Core program written in 2006-2007
— Updated Sept 2011 for > migration
— Works on a contact selection : test with one or two before running over all your address book database
— Thanks to Ben Waldie for helping me debug this —
— © Philippe Dewost 2011 //

set changeCount to 0
set errorCount to 0

display dialog « Warning: This script is designed to modify data! Be sure to back up your Address Book database first! » & return & return & « Do you still want to continue? »

doReplace(changeCount, errorCount)
on error theError
set archivedChangeCount to changeCount
display dialog « Main Dialog :  » & errorCount &  » error(s) happened. Had updated  » & archivedChangeCount &  » contacts so far. Error was  » & theError &  » … »
doReplace(archivedChangeCount, errorCount)
end try

on doReplace(changeCount, errorCount)
tell application « Address Book »
repeat with aPerson in (get selection)
repeat with anEmail in (emails of aPerson)
set textOfEmail to (value of anEmail)
set email_id to id of anEmail
set email_label to label of anEmail
if textOfEmail contains « » then

— update email
set newTextOfEmail to my searchReplace(textOfEmail, « », « »)
set value of anEmail to newTextOfEmail
set label of anEmail to « Work »

— keep soon deprecated address with « other » label
— Uncomment following lines to keep the « old » email with an « other » label
— try
— Corrected by Ben Waldie / AppleScript Guru
— set old_email to make new email at end of emails of aPerson with properties {label: »Other », value:textOfEmail}
— on error theError
— display dialog « Error adding email:  » & theError
— exit repeat
— end try

— Uncomment following line if instead you want to delete the email
— delete (emails of aPerson whose id is email_id)

set changeCount to (changeCount + 1)
end if
end repeat
end repeat
save — applies changes to the addressbook database once done
end tell
display dialog « Finished !  » & errorCount &  » error(s) happened. Have updated  » & changeCount &  » contacts. »
on error theError
set errorCount to (errorCount + 1)
set archivedChangeCount to changeCount
— display dialog « Loop Dialog : Error# » & errorCount &  » happened. Had updated  » & archivedChangeCount &  » contacts so far. Error was  » & theError &  » … »
doReplace(archivedChangeCount, errorCount)
end try
end doReplace

on searchReplace(origStr, searchStr, replaceStr)
set old_delim to AppleScript’s text item delimiters
set AppleScript’s text item delimiters to searchStr
set origStr to text items of origStr
set AppleScript’s text item delimiters to replaceStr
set origStr to origStr as string
set AppleScript’s text item delimiters to old_delim
return origStr

end searchReplace

<– couper ci-dessus –>

Ukibi aurait eu du bon

Monitoring and Optimizing your iPhoto folder size

I noticed recently that my hard drive had shrunk by several, if not a dozen GB. The phenomenon shortly followed a smooth upgrade to OSX Lion who became suspect #1 shortly. And in vain.

Then I turned towards the other usual suspects, namely caches. For these, a simple restart does most of the cleanup and reclaims several GB if your machine has been up and running for a long while (several days if not weeks).

Focus really came to iPhoto when I realized that some changes made to pictures within iPhoto did not reflect on my iPad2: pics were preserved, but did not show up in their latest version.

So I opened the iPhoto packet (Ctrl-click) in my Images folder, sorted content by size, and found that the iPod Photo Cache was 19.6 GB = 25% of my total iPhoto library size

This folder holds all the resized versions of pictures you sync with your various iDevices: in my case, many of the iPhones I had used in my former business lives along with two iPads and a now old iPod Photo… Even if it sits in the iPhoto packet, the iPod Photo Cache content is actually manipulated by iTunes at each synchronization session.


So I quit iPhoto, trashed the folder, and went for 2 long sync sessions (iPhone and iPad) as the whole cache had to be regenerated. Now my pics are in sync again, and the new cache folder is 85% smaller.

Tell me about yours.

The Fireworks Equation : €€€€€€€ = Light + Noise

An absolutely flaggerbasting demonstration of the above equation was given to us on Saturday Sept 10th at the « Grand Feu », claiming to be (and probably being indeed) the biggest in Europe.

Probably also the most expensive (which big means in any case when it comes to qualify fireworks). I haven’t counted how many shots were fired in the « Bouquet Final », but this one lasted more than 5 minutes by itself.

You can check it in up to FullHD resolution and let me know what you think.

Did you know LinkedIn Social Advertising is on by default?

Did LinkedIn tell you that they recently changed their privacy policy and now allow themselves to use your name and photo for commercial use? they could therefore appear in an advert of LinkedIn without your explicit prior consent.

To check what has been turned « on » by default and eventually turn it off:


  1. Take your cursor to the right top of the page where your name is displayed and a small pop-up menu will appear. Click on “settings”
  2. Click on “Account” (left bottom of the page)
  3. Click on « Manage Social Advertising »
  4. Uncheck « LinkedIn may use my name & photo in social advertising »
  5. And save your settings!


Feel free to inform other LinkedIn users you know.