Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An AppleScript to empty one user's trash on one drive' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to empty one user's trash on one drive
Authored by: bugmenot on Mar 13, '07 10:58:09AM

I'm a complete stranger to AppleScript -- is there a way to integrate unmounting the disk into this as well? I know I could add a terminal diskutil command, but can this be done only using AppleScript?

thanks



[ Reply to This | # ]
An AppleScript to empty one user's trash on one drive
Authored by: CajunLuke on Mar 13, '07 03:52:57PM

certainly: after the do shell script "rm ..." command, add a do shell script "disktutil unmount " & drivepath line.

[ Reply to This | # ]