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.
if you've spare twenty minutes or (and inclination) take @ sean penn's rambling account of meeting (then) fugitive mexican drug lord "chapo" guzman. its interesting on number of levels. not quality of sean penn's journalistic work. first observation had there remarkably little actual interviewing going on. penn's limited spanish ("hola" , "adios") played part. guzman made number of statements, claiming turned narcotics because there no other means of earning living. beyond that, nothing groundbreaking. sean penn himself of polarizing figure. guy rose fame jeff spicoli fancies himself of outlaw journalist, without writing chops of hunter s. thompson. prose of intelligent man; stylist ambitions out of reach of abilities. uses word "brume" describe aftereffects of bout of flatulence. pretentious word (i presume) not technically accurate. mentions twice expensive wristwatches sported guzman's so...
when remove commercials recorded tv before encoding, encounter 2 second audio lag after cut. tried subler's fix audio fallbacks in case for. didn't wanted. do? it hint atv, nothing content editing: https://bitbucket.org/galad87/subler/issues/146/add-audio-track-fallback-to-batch-options Forums Apple TV Apple TV and Home Theater 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
i started game 2 weeks ago, knowing nothing , have decided restart i'm feeling more comfortable , thinking trying assassin/stealthed build. how guys playing f4- melee, stealth, sniper, charisma, luck, etc? interesting links, saying game's ai geared head on attacks , ill equipped stealthed players. makes me hesitant try stealthed build. i'd them @ least react me before die. nephew swears melee build. http://www.ibtimes.com/fallout-4-pe...-work-best-different-character-builds-2192331 http://www.vg247.com/2015/11/24/fallout-4-build-guide-infilitrator/ http://arstechnica.co.uk/gaming/201...ut-4-is-like-a-developer-sanctioned-god-mode/ http://www.gosunoob.com/fallout-4/best-starting-stats-builds/ http://www.idigitaltimes.com/fallou...uck-perks-are-more-important-you-think-493379 ---------------------settlement links----------------------- http://www.idigitaltimes.com/fallou...nd-tricks-object-clipping-build-limits-492715 http://ww...
Comments
Post a Comment