J’ai actuellement un raccourci qui copie un fichier vers un autre dossier. Je voudrais le modifier pour que la copie soit enregistrée dans le dossier source, à l’intérieur d’un sous-dossier créé automatiquement et nommé avec la date du jour. Si ce dossier existe déjà, il ne faut pas le recréer ni le supprimer, mais simplement y ajouter le fichier.
You need the current date. You can get that with the %ICUDateTime% Token in the format you want -- I suggest YYYY-MM-DD, the output today would be 2026-06-30, so that sorting folders by name will also sort them by their date:
%ICUDateTime%yyyy-MM-dd%
You need to make a folder -- that's the "New Folder" Action. You don't need to "Create Intermediates" as you are making the new folder inside one that already exists. And you know where to create it -- the "parent path" of selected file's folder, like you used in your uploaded macro.
The "New Folder" Action fails gracefully, the macro continuing, if a folder with that name already exists -- so you don't need to check first, just try and create the folder every time.
You then copy the selected file to the dated folder.
Before anyone leaps in with "You don't need those first two Actions, Nige! Evaluate the Tokens in the "Split" and "Create Folder" Actions." -- this macro is deliberately "defensive", limiting the chance of a mismatched date if triggered bang on midnight or the Finder selection changing during execution.
Hardly necessary here, but I'm trying to get better at doing things "properly"
You must supply the full file path of the file you are copying (name and location), and the destination, which is either a full file path to an existing directory with no matching file name in it (name is preserved), or the full path to a non-existent file in an existing directory (name provided by the destination path).