ShakeOutCache
je nejzbytečnější aplikace jakou kdy svět viděl. Sama ikonka
je stokrát větší než samotný skript. Co to dělá? Najde jeden
adresář, jmenovitě /private/var/tmp/Shake/, hodí jeho obsah
do koše a vynese odpadky.
Tak fajn - teď proč to dělá, co to dělá. Shake
kolikrát spadne, ale pak už nevyčistí cache, takže roste a roste
a roste... až pocítíte nedostatek místa na vašem obřím disku.
A jako obvykle - čistit věci manuálně je děsná pruda.
Jak to použít: hoďte soubor .app do ~/Library/Scripts,
otevřete si další okno Finderu, vyberte Customize Toolbar a
přetáhněte na něj soubor. Klepněte na Done... a je vymalováno.
Už vždycky bude při ruce..
UPOZORNĚNÍ!
Použití na vlastní nebezpečí! Autor se zříká odpovědnosti za
jakékoliv škody, které by případně vznikly užitím tohoto díla..
..................................................................................................................
ShakeOutCache is the
most useless app the world has ever seen. The icon is a hundred
times bigger than the script itself. What it does? It finds
1 folder, namely /private/var/tmp/Shake/, throws the contents
into trash and takes the trash out.
Okay - now why it does what it does. Shake
app never cleanes the cache after it crashes, so it grows and
grows and grows... and then you feel the lack of empty space
on your huge hard drive. And as always - cleaning things manually,
ooh, that sucks.
How to use it: throw the .app file into ~/Library/Scripts,
open another Finder window, choose Customize Toolbar and drag
the file onto the toolbar. Click Done and.. it's done! It will
always be close to your hand.
WARNING!
Use at your own risk! You acknowledge that this software has
been provided to you "As Is" exclusive of any warranties. You
assume responsibility for the proper installation, use and results
obtained from use of this software. In no event shall the author
of this software be liable for any damage caused by use of this
software.
..................................................................................................................
-- we don't
want to see an error message (in case the cache didn't exist)
try
tell application "Finder"
set
startupDisk to name of startup disk
set
shkTempFolder to startupDisk & ":private:var:tmp:Shake:"
as alias
move
every item of shkTempFolder to trash
empty
trash
end tell
end tryl
Přidáním těchto 2 řádek získáte launcher, který
před spuštěním vyčistí cache. Nezapomeňte si nechat ikonku./
If you add these two lines, you'll get a launcher, that will
clean cache before launching Shake. Don't forget to keep the
icon.
tell application "Shake"
activate
end tell
© 2006 chuckyatseznamdotcz |