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.
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
#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...
do prefer iwork ’09, @ least in terms of functionality or prefer new of iwork 2013-15? prefer iwork ’09 in terms of functionality, i’d see think. if you’d read more opinion on old , new versions of iwork, can take @ article: http://jbmachelp.x10host.com/mac/mac-index/software/declining-apple-software-by.html jblagden said: ↑ do prefer iwork ’09, @ least in terms of functionality or prefer new of iwork 2013-15? click expand... there's no doubt apple has "dumbed down" iwork 09 apps latest versions, pages popular of three. perhaps that's why give away suite new mac or ios device. need use office because of compatibility issues did use pages other things, however, don't use @ all. Forums Macs ...
Comments
Post a Comment