tab delimeted log file
tab delimeted log file
- Subject: tab delimeted log file
- From: Brian <email@hidden>
- Date: Wed, 04 Apr 2001 00:28:28 -0400
Forgive the blatant cry for help but I've noticed how generously many users
of this forum will offer snippets or complete scripts to help newbies like
myself out....
I've developed several simple scripts which I'm using as folder actions
currently to control the flow of graphics files in a multi-step production
environment and I've noticed that either user-error or network gremlins are
causing files to disappear well before they're completed. My current
scripts all follow the same basic pattern and work basically like this:
-- wraps got kind of ugly, sorry
on adding folder items to this_folder after receiving added_items
tell application "Finder"
mount volume "volume1" on server "GSI_NT-4" as user name ,
"name" with password "word" -- mount server
set move_list to (every file of this_folder whose label index ,
is not 3)
move move_list to folder "In Stock" of folder "To Be Worked" ,
of disk "Volume1"
select every item of this_folder
set label index of selection to 3
end tell
end adding folder items to
I'd like to institute some logging to provide error checking capabilities to
make sure everything is moving the way it's supposed to and so I can see
where in the process a file disappears. These log files would be researched
manually when need be and more than anything would have "CYA" value if you
get my meaning....although if they show a systemic error that would also of
course be beneficial.
My objective would be to develop is a script that can be added to the body
of my existing folder actions scripts that will (when an item is added to
the source folder and subsequently moved to its target) log the name of the
file, the current time and the destination folder to which it was
successfully duplicated. Preferably this log file would be a tab delimited
text file whose name is something like "push log mm/dd/yy.txt"
Any suggestions and/or snippets would be greatly appreciated!
Thank you-
Brian Mather