I have included the browser inclusion, and have upgraded to LC 9.6.2 The documentation seems straightforward, but I'm having no luck.
Here is my loader code:
Code: Select all
on mouseUp
local tFile
set the URL of widget "browser" to empty
wait 2 ticks
if the environment is "mobile"
then
put getPDFs() into tFile
answer tFile with "OK" // check to see if the syntax looks correct:)
else
answer file "Please choose the file you would like to display" with type "PDF document|pdf|PDF" as sheet
if it is not empty
then
put it into tFile
else
put getPDFs() into tFile
end if
end if
// Allow for spaces in filenames
replace " " with "%20" in tFile
set the url of widget "browser" to tFile
end mouseUp
function getPDFs
get "The-Bible-Atlas.pdf"
put specialfolderpath("resources") into sFolder
put (sFolder & "/" & it) into tFileName
return tFileName
end getPDFs