woensdag, november 14, 2007

Περί Macintosh

Διάβαζα στον Αθήναιο σήμερα περί Macintosh.

Έχω πάει το MacBook 4 φορές για επισκευή (μία για random shutdown syndrome, μία γιατί πέθανε η μπαταρία, και δύο γιατί έσπασε ένα κομμάτι από το πλαστικό). Κανονικά θα έπρεπε να ήμουν απογοητευμένος. Αν ήμουν στην Ελλάδα ενδεχομένως να ήμουν εξαγριωμένος. Εδώ, και τις 4 φορές πήγα το MacBook στο service centre (αφού είχα επικοινωνήσει πρώτα τηλεφωνικά μαζί τους) και μετά από 1 ώρα το πήρα πίσω επισκευασμένο. Παρόλο που απ'όσους υπολογιστές είχα το MacBook έχει παρουσιάσει τα περισσότερα προβλήματα, είναι ταυτόχρονα ο υπολογιστής από τον οποίο είμαι περισσότερο ικανοποιημένος. H απίστευτη εξυπηρέτηση στο service έχει παίξει τεράστιο ρόλο σ'αυτό.

Με δεδομένο ότι σκέφτομαι να επιστρέψω στην Ελλάδα, ανησυχώ για το πώς τέτοια φαινομενικά ασήμαντα πράγματα, επηρεάζουν δραματικά την ποιότητα ζωής. Και δυστυχώς οι διαφορές ανάμεσα στην Ολλανδία και στην Ελλάδα δεν περιορίζονται στο service των Mac.

vrijdag, november 09, 2007

GrowlMail substitute for Leopard

The upgrade to Leopard broke GrowlMail. It has been announced that the next version (1.1.3) of Growl will solve this problem. Until then I came up with a simple solution that replicates some of GrowlMail's functionality. You need to make a new rule in Mail that applies to every message and runs the following Applescript:

using terms from application "Mail"
 on perform mail action with messages msgs for rule theRule
  tell application "Mail"
   repeat with msg in msgs
    set sdr to sender of msg
    set sbj to subject of msg
    do shell script "echo \"" & sbj & "\" | /usr/local/bin/growlnotify \"" & sdr & "\""
   end repeat
  end tell
 end perform mail action with messages
end using terms from
Obviously you must install growlnotify for this to work. It is included in the Extras directory in the standard Growl distribution.

Update: After I posted this I found a pure Applescript solution. Now the script is:

using terms from application "Mail"
 on perform mail action with messages msgs for rule theRule
  tell application "Mail"
   repeat with msg in msgs
    set sdr to sender of msg
    set sbj to subject of msg
    tell me to notify(sdr, sbj)
   end repeat
  end tell
 end perform mail action with messages
end using terms from


on notify(sender, subject)
 tell application "GrowlHelperApp"
  set the allNotificationsList to {"New Mail"}
  set the enabledNotificationsList to {"New Mail"}
  register as application ¬
   "MailScript" all notifications allNotificationsList ¬
   default notifications enabledNotificationsList ¬
   icon of application "Mail"
  notify with name "New Mail" title sender description subject ¬
   application name "MailScript"
 end tell
end notify