Launch pdf on cd
chipp at chipp.com
Tue Feb 15 22:03:19 EST 2005
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)
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
Now all you need to do is launch the pdf filepath.
hope this helps.
More information about the Use-livecode