I have a simple Script which will display a HTML page by choosing the file with DocumentPicker.open(…)
const webView = new WebView()
var filepth = await DocumentPicker.open(['public.html'])
await webView.loadFile(filepth[0].toString(), null, true)
await webView.present(true)
This works no problem when opening from anywhere in the iCloud Drive including the Scriptable Folder.
But when I navigate to On My iPhone, I can select a file but all I then get is the scripts progress bar spinning.
Is it possible to do this or am I hitting a permission restriction or something ?.
Many thanks.