Atalantia
Aktives Mitglied
Thread Starter
- Dabei seit
- 26.11.2009
- Beiträge
- 1.894
- Reaktionspunkte
- 432
Mann ich hatte es satt. Jedes pdf, uralte Programmupdates, Bilder, 3D Modelle alles kreuz und quer. Das sortieren des Download Ordners was den nun in den Eimer und was ins Software-Archiv und welche Bilder behalten usw. Irgendwann hatte ich mal eine Einstellung die die Downloads nach Datum in Ordner sortierte welches die Sache schon wesentlich übersichtlicher macht. War das in Safari? Nun wei auch immer, ich kann mich nicht erinnern also habe ich dafür schnell ein Script geschrieben.
Einfach mit osascript auf launchd einmal täglich starten lassen.
Code:
set bPath to (path to home folder) & "Downloads:" as string
set m to " ⒮"
tell application "Finder"
set filist to items in folder bPath
repeat with x in filist
if m is not in name of x and creation date of x is less than (current date) - 1 * days then
set shortDate to my (do shell script "date +%Y-%m-%d") & m
try
make new folder at bPath with properties {name:shortDate}
end try
move x to bPath & shortDate as alias
end if
end repeat
end tell
Einfach mit osascript auf launchd einmal täglich starten lassen.
Zuletzt bearbeitet: