i've got a file "Script.sh", which includes different shell commands, like some defaults write or creating folders, moving files etc. For Example:
#!/bin/sh
defaults write com.apple.finder AppleShowAllFiles -bool TRUE
killall Finder
However, im pretty new to Objective C and didnt find any solution to run the whole file with NSTask. I only found some solutions with directly coding it into Objective C.
Is it even possible?