revBrowserOpen Local PDF File
Posted: Sat Sep 08, 2012 7:16 pm
Not sure why the script below does not display the selected PDF File
from my Mac HD. I checked the filepath in the variable tFile and it looks correct.
If I feed tFile a web address instead, then the web page displays without issue
in the rev browser. Thanks - Jorge
on MouseUP
local tBrowserId
local tFile
answer file "Please choose the file you would like to display" with type "PDF document|pdf|PDF"
if it is not empty then
put it into tFile
end if
put revBrowserOpen(the windowId of this stack,tFile) into tBrowserId
if tBrowserId is not an integer then
answer "Failed to open browser"
exit mouseUp
end if
revBrowserSet tBrowserId, "showborder","true"
revBrowserSet tBrowserId, "rect", "116,14,1198,660"
end mouseUp
from my Mac HD. I checked the filepath in the variable tFile and it looks correct.
If I feed tFile a web address instead, then the web page displays without issue
in the rev browser. Thanks - Jorge
on MouseUP
local tBrowserId
local tFile
answer file "Please choose the file you would like to display" with type "PDF document|pdf|PDF"
if it is not empty then
put it into tFile
end if
put revBrowserOpen(the windowId of this stack,tFile) into tBrowserId
if tBrowserId is not an integer then
answer "Failed to open browser"
exit mouseUp
end if
revBrowserSet tBrowserId, "showborder","true"
revBrowserSet tBrowserId, "rect", "116,14,1198,660"
end mouseUp