I'm trying to copy values from one Excel sheet to another using Javascript in macOS automation. It's all ok until the number of values to copy gets rather big (like 500k) — the script hits the time limit and returns an "AppleEvent timed out" error.
From what I could find, in AppleScript it's possible to customise the default timeout time just as easily as
with timeout of 3600 seconds
tell ....
end tell
end with
But I couldn't manage to find such method's equivalent in Javascript.
Does anyone know if it exists and how to use it?
Thanks in advance.