bbedit close without saving 1

bbedit close without saving

tell application "BBEdit"
	try
		close window 1 saving no
	on error
	end try
end tell

Here is what the above code is Doing:
1. It’s telling BBEdit to open the file at the path specified by the variable “filePath”.
2. It’s telling BBEdit to close the file without saving.

The reason we’re doing this is because we want to make sure that the file is closed before we try to delete it.

Now, let’s add the code to delete the file:

Similar Posts