Jump to content

Drive Clean/Eject Service


4 posts in this topic

Recommended Posts

Seeing as pretty much everyone in the osx86 project dual-boots i figured i should share this. Its just a simple automator service that erases every file starting with "." on your external drive then ejects it.

 

To install you just drop it in <user folder>/Library/Services.

When you want to clean and eject your media right-click on it and choose "Clean Hidden Files and Eject" and the rest is just magic :censored2:

It also creates a ".metadata_never_index" file in the root of your drive so spotlight doesnt slow down your system indexing the drive every time you plug it in. If you dont want that file created open the workflow in automator and erase the line "touch "$@"/.metadata_never_index" in the last box "do shell script."

 

Please report any bugs you may find, though i doubt i can help because i am a total noob to automator and applescript. If someone wants to improve this feel free to do so, just post the modifications so we can all use it.

 

Clean_Hidden_Files_and_Eject.zip

Link to comment
Share on other sites

lol, you forgot to attach your script

 

btw, you can use blueharvest to:

* Automatically remove ".DS_Store" files.

* Automatically remove Resource fork (._) files.

* Remove .Trashes folders from removable disks.

* Use simple contextual menu Finder based cleaning of disks, folders and Zip archives.

some screenshots:

http://mac.softpedia.com/progScreenshots/B...shot-11561.html

Link to comment
Share on other sites

 Share

×
×
  • Create New...