So, jetzt habe ich mal ein bisschen mit Excel (Brauche dringend einen *kotz* -smiley...Ina?) rumprobiert, und herausgekommen ist Folgendes:
Code:
set tSec to (GetMilliSec) div 1000
set tHrs to tSec div hours
set tMin to (tSec mod hours) div minutes
set tTime to (tHrs & ":" & tMin) as string
set theDay to day of (current date) as number
set theMonth to month of (current date) as string
do shell script "open /Users/Username/Desktop/abrech.xls"
tell application "Microsoft Excel"
set Value of first Cell of Row theDay of Worksheet theMonth to theDay
set Value of second Cell of Row theDay of Worksheet theMonth to tTime
Quit
end tell
Pfad bei open nach Bedarf anpassen.
Das Script bezieht sich auf die xls-Datei die diesem Post beigefügt ist (abrech.xls) und erklärt sich dann eigentlich von selbst.
Wenn noch Funktionalität dazu kommen soll bitte ich das zu äußern, ist erstmal eine recht rohe Version.
Kleiner Makel: Es wollte mir auf Teufel komm raus nicht gelingen die Datei automatisch speichern und schliessen zu lassen, warum wissen wohl nur die MS-Programmierer, ich jedenfalls nicht, obwohl ich wirklich alles mögliche probiert habe. Egal, ein Mausklick um die Exceldatei zu sichern ist ja nicht die Welt.
Eine andere Überlegung wäre das ganze in eine csv-Datei zu schreiben, lässt sich ja auch bequem in allen gängigen Tabellenkalkulationen öffnen, wäre auch besser als xls weil nicht proprietär...
Warte jetzt erstmal auf Feedback...
Grüße,
Flo