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...
hi, i'm trying run apple hardware test on mid 2010 21.5" imac running osx mavericks imac running suspect hdd failure imminent.. upon pressing (option + d) on start-up i'm greated image of globe trying connect , download. being displayed error code -3403d. have searched forums error , no 1 has gotten reply, thought i'd start new thread , top of list. have made sure connected network, using ethernet cable this. can boot recovery mode (command + option + r). have tried running first aid on both hdd , partition macos installed on. appreciated. i think error code means aht can't located. need run aht 10.6 applications install disc 2 came imac. here instructions: https://support.apple.com/en-us/ht201257 here step above link: using apple hardware test on computers os x v10.7 , earlier: 1. start aht on these computers make sure applications install disc 2 inserted buil...
Comments
Post a Comment