Read File action failed to read text file with error Error Domain=NSCocoaErrorDomain Code=264

The file is written using the following AppleScript:

--WRITE THE FILE

tell application "System Events"

**set** save_File **to** **open for access** save_File **with** write permission

**try**

	**write** url_list to save_File as «*class* utf8»

**end** **try**

**close access** save_File

end tell

When attempting to open and read the file, the error occurs.

Three ideas:

I think we would need to see the exact path. You didn't show the path.

KM (i.e., the Engine) may not have permission to read the file. You may have to show the permissions on the file that you are trying to open.

I think you may need to show us the exact contents of the variable "Browser_SavedTabsFile", including possible newlines, tabs and spaces.

I'm not sure if one or any of these ideas will solve the problem, but they are worth considering.

That's a "could not determine the encoding" error.

Difficult to know why without the rest of the AppleScript and the data you are writing to file, but make sure you are using a .txt extension if you aren't already (shouldn't be needed, but a useful nudge), make sure the file paths in the AS and KM action match, and see if you can open the file in a text editor.