Olivetti
Aktives Mitglied
- Dabei seit
- 09.12.2005
- Beiträge
- 11.692
- Reaktionspunkte
- 4.078
Code:set device to do shell script "[[ $(mount | grep -c 'msdos') -eq 1 ]] && mount | grep 'msdos' | cut -d' ' -f1 || exit 0" if device is "" then beep display alert "fatsort: must be 1 msdos device only." else do shell script "diskutil unmountDisk " & device do shell script "/usr/local/bin/fatsort -n " & device with administrator privileges do shell script "diskutil mount " & device end if
klappt natürlich nur, wenn nur eine fat32 volume da ist…
So schmeisst er bei msdos <> 1 einen Fehler.
Zuletzt bearbeitet: