ha!
My preferred method is to see who owns the console. The currently
logged in user in OS X always owns the console no matter what. So just
set a variable like this
CurrentUser=ls -l /dev/console | awk '{ print $3 }'
Then call the variable in your command
rm -rf /Users/$CurrentUser/Library/Caches/Adobe InDesign
that is all you would need to do
