
How to copy a pdf and how to rename the pdf
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
How to copy a pdf and how to rename the pdf
How to copy a pdf and how to rename the pdf using Livecode 

--
Thanks
Shalu S
Thanks
Shalu S
-
- Posts: 13
- Joined: Wed Feb 25, 2015 2:15 pm
Re: How to copy a pdf and how to rename the pdf
try to look at this. it was posted on forum before by FireWorx. I hope it can help you
- Attachments
-
- MySplash.livecode.zip
- download and look at the code
- (4.5 KiB) Downloaded 226 times
Re: How to copy a pdf and how to rename the pdf
H Shalu,
This script should work
Best regards
Jean-Marc
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
Jean-Marc
https://alternatic.ch