How to copy a pdf and how to rename the pdf
Posted: Wed Jul 01, 2015 10:03 am
How to copy a pdf and how to rename the pdf using Livecode 

Questions and answers about the LiveCode platform.
https://www.forums.livecode.com/
Code: Select all
on RenameMyPdf
answer file "Choose a pdf file:"
if it = empty then exit RenameMyPdf
put it into tPathPdfS
set the itemdel to "/"
put item -1 of tPathPdfS into tNamefile
set the itemdel to ","
ask file "Save to :" with tNamefile -- assume name contains ".pdf"
if it = empty then exit RenameMyPdf
put it into tPathPdfD
put url("binfile:" & tPathPdfS) into url("binfile:" & tPathPdfD)
end RenameMyPdf