Is there a way to make the ‘written file’ open in Safari/IE instead of TextEdit?
I use the following script:
if my write_to_file(index_HTML, target_file, false) is false then �
	error "There was a problem creating the HTML file."
on write_to_file(this_data, target_file, append_data)
	try
		set the target_file to the target_file as text
		set the open_target_file to �
			open for access file target_file with write permission
		if append_data is false then �
			set eof of the open_target_file to 0
		write this_data to the open_target_file starting at eof
		close access the open_target_file
		return true
	on error
		try
			close access file target_file
		end try
		return false
	end try
end write_to_file
Maybe I could first copy an ‘index.html’ file to the output folder and then write to it?