How to create a app with automator to run a bash script?
Get link
Facebook
X
Pinterest
Email
Other Apps
i want create app kind of ds store remover remove directories instead of 1 file. wondering how go doing have bash script code below need know do. have app ask root password , allow user select directory want these directories.
sudo rm -rf “.thrashes”
sudo rm -rf “.spotlight-v100”
sudo rm -rf “.trash”
sudo rm -rf “.ds_store”
it sounds want run bash script application. i'd rewriting in applescript:
code:
set targetdir (choose folder prompt "choose folder want clean") set targetpath posix path of targetdir set shellscript "cd " & targetpath & " rm -rf .trashes rm -rf .spotlight-v100 rm -rf .trash rm -rf .ds_store" shell script shellscript administrator privileges
you can file -> save... , choose application file format.
note doing way lets operating system deal granting root permissions - doesn't mess around handling passwords itself.
be careful. if cd command fails reason rm commands carry on regardless, in /. idea bash script exit if cd fails.
#4 i'm not sure ask, or go...is normal keychain storage logs? com.apple.iadidrecords apple persistent state encryption call history user data key com.apple.ids: devicehbi ids: identity-rsa-private-key itunes iad password safari extensions list safari webcrypto master key didn't create of these. normal? me again... also, apparently certified apple employee? certificate id , everything. can log in apple certification registry keychain storage password , have account id?????? may hub? apple using. not losing it. don't think @ least. Forums Macs macOS macOS iPhone Mac OS & System Software iPad Apple Watch Notebooks iTunes Apple ID iCloud Desktop Computers Apple Music Profess...
will apple ever let set our default browser other safari ? max2 said: ↑ will apple ever let set our default browser other safari ? click expand... going no on one. Forums iPhone, iPad, and iPod Touch iPad iPad iPhone Mac OS & System Software iPad Apple Watch Notebooks iTunes Apple ID iCloud Desktop Computers Apple Music Professional Applications iPod iWork Apple TV iLife Wireless
with discussion on islam on last few years, started digging things. started no knowledge of islam. found common thread in of these discussions islam, , seems apply other religions. part of argument that's seems pretty damming these religions created beyond reach of science. designed such know no proof ever found. in addition fact ones i've looked @ have else in common. don't truth till end. there no way confirm right. issue don't allow challenge taught, kill if do. 1 of basic elements of fraud getting believe something. of them start people when young, before brain understand logic , critical thinking. rituals reinforce belief , fend off other thought, if belief had strong argument, why not welcome other thoughts , defend against them logic? thought: if religion people good, why 0.07% of people in prison, non-religious? http://www.alternet.org/tea-party-a...americas-scientists-and-07-percent-its-prison religious pe...
Comments
Post a Comment