Launch pdf on cd

Chipp Walters chipp at chipp.com
Tue Feb 15 21:03:19 CST 2005


Stephen,

Couple of things. First, if the PDF is going to already be on a CD, then
you don't need to set it's fileType or Creator Code. Sarah's right, you
can't change a file on a CD.

Next if you need to find the path to the PDF and it's in a folder next
to the application, then you can always use the address function to get
the path to the app. Then you just need to add the
"/PdfFolder/myPdf.pdf" to the path. From memory (not tested)

function getPathToApp
   put the address into tAddress
   set the itemDel to ":"
   delete first item of tAddress
   set itemDel to "/"
   delete last item of tAddress
   if the platform is "MacOS" then delete item -2 to -1 of tAddress
   return tAddress
end function

Now all you need to do is launch the pdf filepath.

hope this helps.

Chipp



More information about the use-livecode mailing list