fmplugin Posted September 28, 2004 Posted September 28, 2004 I want to use Applescript to delete the access log file in my web folder. I am using FileMaker 7. I would like to be able to import the access log and then delete it. I cannot figure out how to import the file with applescript as the access log file is saved with a .log extension. Any insight on this would be greatly appreciated. Thanks Joe Mele
cjaeger Posted September 28, 2004 Posted September 28, 2004 Sure you want AppleScript when your OS is Win XP? No AppleScript needed, if you simply overwrite the log file with an empty file. However, you will have to suspend web sharing for the moment the file is opened/overwritten, becuse the file is locked otherwise. (And where would log entries go when there is web activity in the instant of file deletion?) You can import the file into a container, then export any empty field as text file (export all values..)
fmplugin Posted October 1, 2004 Author Posted October 1, 2004 The log files are automatically re-created. The log files can grow to be quite large, and if you delete the access log and the application log, they are automatically re-created from scratch. I have just removed them and then started IWP and two new files have taken their place. I would just like to have a path on the mac that will allow me to automatically delete these files. I understand that IWP would need to be suspended while this occurs.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now