Hi Everyone,
I was trying this in automater but couldn’t get it to work. Here is what I’m trying to accomplish.
I use a program called Synchronize! X Plus to backup and sync files. I would like to have a script that looks at the contents of the Synchronize! X Log for a certain character “*” which it uses to note errors. The log file is located at:
Users/CurrentUser/Library/Preferences/Synchronize! X/Synchronize! X Log.
Here is a sample of how it writes in the log.
Begin Log Sample>>
8/31/06 9:36 AM Starting backup for “TiBook Work - Monday”.
8/31/06 9:39 AM Couldn’t find the disk “TiBook HD”. Synchronization cancelled.
- Can’t find the disk “TiBook HD”.
there was an error copying the files.
End Log Sample>>
then copy the error message and email it.
Step by Step
- open Synchronize! X Log with TextEdit
- search for “*”
- if found copy from “*” to next return then loop to find every instance
- save a copy of the log as is to the same directory and add Date & Time to filename
- clear the log, save and close
- email the log error(s) using Mail.app
Any help would be greatly appreciated.
Thanks,
Mark
Model: G5 2.0gHz DualCore Power PC
AppleScript: 1.10.7
Browser: Safari 419.3
Operating System: Mac OS X (10.4)