Summary: I am trying to build an applescript that will email me every xx days with a summary of events.
Explanation: I manage a computer that sits in a bar. Once in a while, a bartender will add a cd full of music, or reboot, or pull up a website, whatever.
Primarily, when new music is added, I need to go into iTunes and update Artist, Year, Genre, etc. so that the smart lists will have the correct music.
The issue is, essentially, nobody tells me when new music is added, so I never know when to go check!
Result:
Every xx days, I would like to get an email from the computer with a report of:
- New music added to iTunes in the last xx days
- Items added to folders (and all sub folders) in xx days
- Items modified in itunes (id3 tag, genre, check/uncheck, year, artist, etc) in xx days
- Websites visited in the last xx days (safari history)
- computer uptime report
- ?? perhaps other useful information ??
I can schedule the applescript to run via iCal, and I know you can send emails through Mail… i just don’t know how to collect the information to put INTO the email to send.
Possibles: upon scrounging the internet, I found scripts to send emails, report uptime, show when something was added to a folder (using smart folder triggers). I am just not well versed enough to pull it all together.
Here’s the individual scripts I have so far:
– to eMail:
tell application “Mail”
set theNewMessage to make new outgoing message with properties {subject:“Summary Report”, content:“CONTENT HERE”, visible:true}
tell theNewMessage
make new to recipient at end of to recipients with properties {address:“user@email.com”}
send
end tell
end tell
– uptime:
do shell script “uptime”
Any help would be SUPER appreciated.
Model: Mini
Browser: Safari
Operating System: Mac OS X (10.5)