![]() ![]() I get "Can't get files XXXX as alias" or if I try to create a variable, that is not defined (though I have tried numerous times. The answers below solve the naming problem - THANK YOU!īut when I try to pick up a bunch of files - there are 25 of them (happily found and moved by Automator (Find files and Move files) the output is not recognised as an input into AppleScript. But I cannot do what I really want: change the name based on the date in the filename. I can move the files and automatically (thanks to automator) I can even add the current date at the beginning of the name in the right format (but it will be the current date not the date in the file). The full name would become "YYYYMMDD 98765432 Month YY". I then wanted to rename them so that the second date comes first in the name in YYYYMMDD format, so that they will automatically be listed in date order in the year folder. Sometimes the first date starts on the last day of the previous month!Īs a newbie I started with Automator - using a Folder Action to move the individual files to a named folder (by year). The second set of two numbers refers to two dates, in day-month-year format. Typically they have this name: "Statement-12345678-9876-2020.pdf" The two sets of numbers at the beginning are not these generic ones but there are 8 figures (though the first number sometimes is not listed as it is a "0"). ![]() The documents are downloaded into the (mac) downloads folder. I am interested in understanding the code so I can adapt it after too, for further actions (and maybe for others to use). Starting without any subfolders in the Photos folder or files in the Photos to Sort folder, I dragged and dropped the following files into the Photos to Sort folder: 2020. I would like to automate the filing and renaming of some personal and business documents - they are bank statements so the numbers are anonymised. To test the example shell script code, I created the Photos and Photos to Sort folders in my Home folder and assigned the later to the Folder Action in my Automator workflow. I have trawled the site and the internet but have not found an answer to what seems like a simple problem. I am a newbie to programming and therefore please excuse my lack of knowledge.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |