Juandeestostiempos 2 Posted June 30, 2017 Share Posted June 30, 2017 Hello, I have about 500 EN notes each containing a pdf. I would like to rename the pdf file with the title of the EN note. Is there a way to script this, or another way besides doing it by hand? thank you Joe Link to comment
enki 33 Posted June 30, 2017 Share Posted June 30, 2017 You can't rename it. You have to open the pdf in another app (PDF expert for example), rename it and than reimport inside your note and delete the first pdf. Link to comment
Level 5* gazumped 11,517 Posted June 30, 2017 Level 5* Share Posted June 30, 2017 Depends what your platform is - in Windows desktop I can rename an attached file by right-clicking on it. My question would be: why bother? It will be neater to have the attachments named according to the note, but find a note, and you find the attachment. It's not like you have to search the files by name... Not exactly scripting, but in Windows this could be possible (ish) by using a keystroke recorder like Phrase Express - not sure how much you could automate unless the attachments is always in the same physical position in the note, but you could record some of the keystrokes required for each operation. Link to comment
Level 5* DTLow 5,735 Posted June 30, 2017 Level 5* Share Posted June 30, 2017 53 minutes ago, gazumped said: Depends what your platform is - in Windows desktop I can rename an attached file by right-clicking on it. My question would be: why bother? Likewise on my Mac; I have a rename option I'd like to be able to script this but the rename function is no longer available in Applescript Renaming isn't necessary, but I try to follow up on this. Exporting a bunch of pdf attachments named "Receipts" can lead to confusion Link to comment
Level 5* CalS 5,260 Posted June 30, 2017 Level 5* Share Posted June 30, 2017 2 hours ago, gazumped said: Not exactly scripting, but in Windows this could be possible (ish) by using a keystroke recorder like Phrase Express - not sure how much you could automate unless the attachments is always in the same physical position in the note, but you could record some of the keystrokes required for each operation. Yeah, as long as the attachment is first thing in the note you can use PE to copy the title and use that title to rename the PDF. A little more complicated than most captures in that you might have to create a couple of mouse position steps, but doable. Particularly for 500 actions. Link to comment
Level 5* gazumped 11,517 Posted June 30, 2017 Level 5* Share Posted June 30, 2017 I take DTL's comment about receipts, but for the average reports, minutes, user guides and whatnot, I just leave the files with whatever weird machine name they got from being downloaded. They'll never be exported out in any more than ones or twos... And the PE thing I think is possible, but probably not practical unless you really REALLY need to rename files.. Link to comment
Level 5* CalS 5,260 Posted June 30, 2017 Level 5* Share Posted June 30, 2017 19 minutes ago, gazumped said: And the PE thing I think is possible Took it as a challenge, and it is possible. Had to add the last mouse position due to an idiosyncrasy of PE. The mouse positions are specific to my two monitor set up. Change them to the particulars of one's own set up. But the below will rename an attached PDF, first in line in the note, with the note title. I don't feel compelled to rename PDFs either, but should I ever.... {#CTRL -chars a}{#CTRL -chars c}{#mouseposition -x 3200 -y 500}{#RIGHTMOUSEBUTTON}{#mouseposition -x 3275 -y 750}{#LEFTMOUSEBUTTON}{#mouseposition -x 2947 -y 542}{#CTRL -chars a}{#CTRL -chars v}{#NONE -chars .pdf}{#ENTER} Link to comment
Level 5* gazumped 11,517 Posted July 1, 2017 Level 5* Share Posted July 1, 2017 Show off... Link to comment
Juandeestostiempos 2 Posted July 1, 2017 Author Share Posted July 1, 2017 Thank you all so much for the help! Link to comment
Level 5* CalS 5,260 Posted July 1, 2017 Level 5* Share Posted July 1, 2017 Let us know how it goes. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.