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.
hi, bought logi create keyboard ipad pro. keyboard did not work (key stroke lags) ios 9.2 (see here http://forums.logitech.com/t5/table...-major-dropped-key-key-lag-issue/td-p/1465324 ) updated latest beta 9.3 , better now. not perfect. means, , can't type on keyboard. software issue or hardware faulty? did follow these instructions? http://support.logitech.com/en_ch/a...klit-keyboard-case?product=a0q31000009ugsxaam Forums iPhone, iPad, and iPod Touch iPad iPad Accessories 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...
hey everyone, discovered today while sketching there small area on ipad pro screen touch recognition jumpy. tried cover area pattern of straight lines , i've discovered it's regular rectangular shape. before returning wanted ask if can reproduce issue on ipad pros, maybe it's design issue - internal component prevents touch recognition in particular spot. it's halfway on left edge in portrait orientation. problem occurs both in adobe sketch , apple's notes app while using simple stylus (still no pencil me, boo). i've noticed if press stylus more problem not occur, , doesn't seem happen if use fingers. seems it's less-receptive area smaller point stylus (a simple passive wacom pogo), it's okay bigger target finger. here's image of phenomenon: attached files: a"> img_0009.png file size:...
Comments
Post a Comment