Fixed #11
app-cleaner.sh now moves app data to trash using a single osascript operation
This commit is contained in:
parent
00cd60362d
commit
3617ab011d
2 changed files with 2 additions and 3 deletions
how-to-clean-uninstall-macos-apps-using-appcleaner-open-source-alternative
|
@ -114,8 +114,7 @@ read -r answer
|
|||
if [ "$answer" = "y" ]; then
|
||||
printf "%s\n" "Moving app data to trash..."
|
||||
sleep 1
|
||||
for path in "${paths[@]}"; do
|
||||
osascript -e "tell application \"Finder\" to delete POSIX file \"$path\"" > /dev/null
|
||||
done
|
||||
posixFiles=$(printf ", POSIX file \"%s\"" "${paths[@]}" | awk '{print substr($0,3)}')
|
||||
osascript -e "tell application \"Finder\" to delete { $posixFiles }" > /dev/null
|
||||
printf "%s\n" "Done"
|
||||
fi
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue