Launching a PDF file stored within a desktop app
paul at livecode.org
Wed Feb 3 18:50:33 EST 2016
launch [documentPath with] applicationPath
in the dictionary
put the effective fileName of this stack into tPdf
set the itemDel to slash
delete item -1 of tPdf
put "/Support/Instructions.pdf" after tPdf
launch tPdf with "/Applications/Preview.app"
…works for me in a standalone if you add a folder ‘Support' containing the ‘Instructions.pdf' in the ‘Copy Files’ pane of the ’Standalone Application Settings’. For this to work in the IDE, make sure the ‘Support’ folder is next to the Livecode stack.
> On 3 Feb 2016, at 13:05, Charles Szasz <cszasz at mac.com <mailto:cszasz at mac.com>> wrote:
> Has anyone come up with a script to launch a PDF that is a file within a desktop app? I was thinking of including a PDF Help file within an app.
> Sent from my iPad
> use-livecode mailing list
> use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode