Hello everyone.
I've been looking for a way to make my life easier, I have tons of little Automator scripts with max. 2 tasks (move this, rename that, pause itunes, etc.), but now I need something a bit more tricky and hope there are some cracks out there who can help me out, as I have no idea how to do this and suspect it will need a value or some script to achieve. How to move a file into existing folders based on the current date which changes every month? Here's the deal:
When I download a monthly online receipt, I would like Automator to scan its content (format is always PDF) and based on the information (like say the name of the company) to rename the file into: Bill - [compagny] - [month] [year] and move it to an already existing folder in my Documents which is structured as followed:
Main Folder is "2015"
2015 > January 2015
2015 > February 2015
2015 > March 2015
etc…
I was able to manage the first part until the moving-folder-bit.
1.) First problem: As a concrete example (see image below), the company is called "Sanitas". When I download the bill PDF from Sanitas' website, it comes in an indescribable file name like "invoice-195809192.pdf" which makes no sense at all. The Action Folder sees the PDF, scans it for the word "Sanitas" in its content. When found, it changes its name to "Bill - Sanitas - July 2015.pdf" (I found the variable "today's date", so that works fine). The next step is to move it to the folder July 2015. How do I do that? Can a value do this or does it needs a script? Either-way, it must be able to recognize that it needs to move it to July 2015 this month, August 2015 next month, when I download the new bill by the end of August. This is where I stumble.
2.) Also, some bills come "late", which means, it's a bill for the month June but can only download it in July. I need to change the files name but not with "Today's date" but "Last month date". Is there a way to do this?
3.) Lastly, this has more to do with the action folder process itself; sometimes a downloaded file into the "Downloads" folder which the Folder Action points to does not see the newly added file. Is this an error of Folder Action? When I move the file manually say from Dekstop to Downloads, it works. But when the file is saved directly to Downloads from the internet (I'm using Safari), the Folder Script doesn't activate and the file stays there. Is this a bug?
Thanks you so much for your help.
(P.-S. my system is in french, so almost everything's in french too ;-)
I've been looking for a way to make my life easier, I have tons of little Automator scripts with max. 2 tasks (move this, rename that, pause itunes, etc.), but now I need something a bit more tricky and hope there are some cracks out there who can help me out, as I have no idea how to do this and suspect it will need a value or some script to achieve. How to move a file into existing folders based on the current date which changes every month? Here's the deal:
When I download a monthly online receipt, I would like Automator to scan its content (format is always PDF) and based on the information (like say the name of the company) to rename the file into: Bill - [compagny] - [month] [year] and move it to an already existing folder in my Documents which is structured as followed:
Main Folder is "2015"
2015 > January 2015
2015 > February 2015
2015 > March 2015
etc…
I was able to manage the first part until the moving-folder-bit.
1.) First problem: As a concrete example (see image below), the company is called "Sanitas". When I download the bill PDF from Sanitas' website, it comes in an indescribable file name like "invoice-195809192.pdf" which makes no sense at all. The Action Folder sees the PDF, scans it for the word "Sanitas" in its content. When found, it changes its name to "Bill - Sanitas - July 2015.pdf" (I found the variable "today's date", so that works fine). The next step is to move it to the folder July 2015. How do I do that? Can a value do this or does it needs a script? Either-way, it must be able to recognize that it needs to move it to July 2015 this month, August 2015 next month, when I download the new bill by the end of August. This is where I stumble.
2.) Also, some bills come "late", which means, it's a bill for the month June but can only download it in July. I need to change the files name but not with "Today's date" but "Last month date". Is there a way to do this?
3.) Lastly, this has more to do with the action folder process itself; sometimes a downloaded file into the "Downloads" folder which the Folder Action points to does not see the newly added file. Is this an error of Folder Action? When I move the file manually say from Dekstop to Downloads, it works. But when the file is saved directly to Downloads from the internet (I'm using Safari), the Folder Script doesn't activate and the file stays there. Is this a bug?
Thanks you so much for your help.
(P.-S. my system is in french, so almost everything's in french too ;-)