Page 1 of 1

How to copy a pdf and how to rename the pdf

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

Re: How to copy a pdf and how to rename the pdf

Posted: Wed Jul 01, 2015 11:51 am
by mulandc@yahoo.fr
try to look at this. it was posted on forum before by FireWorx. I hope it can help you

Re: How to copy a pdf and how to rename the pdf

Posted: Wed Jul 01, 2015 12:23 pm
by jmburnod
H Shalu,
This script should work

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
Best regards
Jean-Marc