Mobile Browser Widget Crashes
Posted: Tue Dec 22, 2020 1:22 am
This is for android.
I have a pdf file called sample.pdf saved in specialFolderPath("documents"). I want to display it in the app. I suppose I have to use the browser widget.
But, when I script:
set the url of widget "browser" to specialFolderPath("documents") & "/sample.pdf"
-or-
set the url of widget "browser" to specialFolderPath("documents") & "sample.pdf"
Either way (forward slash or not) it crashes the app. Is that how I am supposed to do it? Any other way to display it?
Thanks!
I have a pdf file called sample.pdf saved in specialFolderPath("documents"). I want to display it in the app. I suppose I have to use the browser widget.
But, when I script:
set the url of widget "browser" to specialFolderPath("documents") & "/sample.pdf"
-or-
set the url of widget "browser" to specialFolderPath("documents") & "sample.pdf"
Either way (forward slash or not) it crashes the app. Is that how I am supposed to do it? Any other way to display it?
Thanks!