Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7357 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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..)

Posted

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.

This topic is 7357 days old. Please don't post here. Open a new topic instead.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.