![]() |
|||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
#1
|
|||
|
|||
Help with AppleScript - text file from log
Dave,
Remember me? ![]() When you have a free moment (or maybe several) can you provide me with some AppleScript code that will pluck off the bottom 10-20 lines of a log file and write it out to a text file? What I'm hoping to achieve is to be able to add a line to the bottom of your prune_log shell script that will call this routine... mail -s "Backup Results" me@mydomain.com < /the/file/you/help/me/create.txt So I need code to insert between on afterRunningCopy() and end afterRunningCopy which will create the text file. The same routine could be called between on errorRunningCopy(errorMsg) and end errorRunningCopy to report a failure. I think this could end up helping a few people that I've read here that would prefer an email routine containing some useful information as opposed to relying on Growl notifications. If this is too much to ask of you, no sweat. Thanks! MOTE ________ Yamaha CT3 Last edited by MacOfTheEast; 01-19-2011 at 09:05 PM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to preserve icon of target volume during smartbackup? | mypointofview | General | 62 | 12-08-2007 07:18 AM |
A strategy for managing SD! jobs via AppleScript | Syzygies | General | 15 | 05-01-2006 07:55 AM |
Problems with SD | fdwlaw | General | 8 | 01-15-2006 10:58 AM |
No such file or directory | jjg | General | 7 | 05-06-2005 02:07 PM |
File Preventing Successful Backup | michael k | General | 4 | 03-18-2005 10:02 AM |