Emailbenachrichtigung bei 10.5.2-Update zum selbermachen

update_message.pngIch warte mit dem Umstieg auf 10.5 bis das 10.5.2 Update durch ist, nur wann kommt es?Nun etwas umständlich, aber  prompt kommt die Nachricht auf mein Handy =)Dieses AppleScript lasse ich alle 15min laufen, sobald auf der Support-Seite von Apple die Rede von 10.5.2 ist, verschickt es eine Email.
Sobald eine Email mit diesem speziellen Betreff bei mir eintrifft, erhalte ich auch gleich noch eine SMS über meinen Email-Provider.Das Skript zum Automatischen Update habe ich mir dann aber doch noch verkniffen =)
 
set h to (word 1 of (do shell script "curl -s http://www.apple.com/support/downloads/ | grep 10.5.2 |/usr/bin/wc -l")) as integer
if h > 0 then
	tell application "Mail"
		close every window
		set newMessage to make new outgoing message with properties {subject:"10.5.2 Ist da!" as text}
		tell newMessage
			set visible to true

			make new to recipient at beginning of to recipients ¬
				with properties {address:"meineEmail@mac.com"}
		end tell
		send newMessage
	end tell
end if
This entry was posted in AppleScript and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

2 Comments

  1. absolutMac
    Posted January 31, 2008 at 7:02 pm | Permalink

    Hi Dein Script ist supi! Ich habe es soeben auf absolutMac.de gepostet! :)

    viele Grüße

  2. Posted February 1, 2008 at 1:05 am | Permalink

    Kleine Änderung im Code, hatte vom Test noch nach 10,5,11 gesucht.
    Hätte damit aber nur so 1-2 Jahre länger gebraucht, bis die Mail gekommen wäre ;-P

One Trackback

  1. [...] Hubionmac.com hat ein Script bereitgestellt für alle Leopardbenutzer, die sehnlichst auf das 10.5.2 Update warten. Es benachrichtigt sofort per Mail und optional Handy, wenn es soweit ist! Ein absolutes Muss!!   [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CAPTCHA:


+ two = 6

Subscribe without commenting

  • Seite übersetzen:


    Paypal for Pizza:




  • Kategorien


  • Letzte Kommentare

    • Niklas: Vielen Vielen Dank! So klappt es!
    • hubi: Servus Niklas, ich habe mir den Quellcode noch einmal angesehen und habe nun unter 10.7.3 einen Weg gefunden...
    • Niklas: Klingt super das Script. Leider bekomm ich immer folgende Fehlermeldung: error “„Mail“ hat einen Fehler...
    • Jürgen: Hallo Hubi, beim Abfragen von Kennworten gibt es noch eine böse Falle: Das Format, in dem security antwortet,...
    • hubi: Am einfachsten Du öffnest im AppleScript-Editor mal das Funktionsverzeichnis (unter Ablage) von iTunes. Ein...