53

The updater is registered with the system service launchd. Instructions to completely disable this can be found on The real way to disable Adobe Updater from your Mac OS X: Open a Terminal window and type the following commands: cd ~/Library/LaunchAgents launchctl remove `basename com.adobe.ARM.* .plist` launchctl remove `basename com.adobe.AAM.* .plist` ...


44

I think this is an option that will do exactly what you want. Using your Serial Number.jpg example, do as follows: In the Finder browse to the image called “Serial Number.jpg” located on Server1 Right-click on the file to display the context menu Now press and hold the option key down Select the Copy “Serial Number.jpg” as Pathname option Now go to the ...


28

You can just drag & drop a file [or a whole swathe of them] into a text area to get its [their] path[s] - not in all apps but in many, including Terminal [& incidentally in the question/answer space on Stack Exchange too.] Some apps, like BBEdit, do not support this and take the contents of the file insteat of the full path. For these apps a Command ...


13

The shell snippet pbpaste | tr -cd "[:digit:]+" | pbcopy will take the content of the clipboard, remove all non-digits and put the result back into the clipboard.


12

You can also use gpgtools (https://gpgtools.org) it is got all the possible GPG tools you are probably going to need (they also have a gpg plugin for Apple Mail) and adds Services for signing/encrypting/decrypting/etc. to the contextual menu (right-click->Services).


12

You can use ControlPlane where you can set up rules to carry out tasks such as opening apps based on various criteria which includes connecting to Wi-Fi. ControlPlane supports multiple contexts where a context is defined as a location or activity you are performing. Using evidence sources you can create a set of rules that tell ControlPlane what context ...


12

This is what Parental Controls can be used for. You can set the times where you can and cannot use the computer. The caveat is that you cannot be an Admin so you will need to give the reins of control over to a trusted person. That said, Parental Controls is just one avenue and you cannot rely on tech to address an issue like this. I say this with the ...


11

find . -type f -exec /sbin/md5 -r {} + ^^^^^^^ ^^^^^ ^^^^^^^^^^^^ ^^ ^ | | | | | | | | | +- add as many file names as possible per call | | | +---- replace with names of found files | | +------------ command to run | +-------------...


10

You should be able to turn your script into an application with Automator - Applications -> Utilities -> Automator.app. Look for an option called "Run Shell Script" and once you're done, it should behave like other apps in that anything that is dragged and dropped on it will be run with it. Good luck!


10

The settings are stored in /Library/Application Support/com.apple.TCC/TCC.db: $ sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db 'select * from access' kTCCServiceAccessibility|com.apple.ScriptEditor2|0|1|0|�� kTCCServiceAccessibility|com.red-sweater.FastScripts|0|1|0|�� kTCCServiceAccessibility|com.apple.AccessibilityInspector|0|1|0|�� ...


9

This sort of file can also be manually deleted from the LaunchAgents or LaunchDaemons folders in the /Library Folder - with Administrator privileges. This is where the intrusive apps like Adobe often install things--and sometimes apps that are really trustworthy. It's not a bad idea to look through these folders now and then, to see what might have been ...


9

Since Yosemite, OS X/macOS also supports JavaScript as an inter-process scripting language--officially known as JavaScript for Automation, also referred to as JXA. The documentation (and some would say, the implementation) is somewhat lacking compared to AppleScript, but if you're already more familiar with JavaScript than AppleScript, then it might be an ...


9

Try this: find . -type f -print0 | xargs -0 md5 -r Note -print0 and -0 to handle spaces in filenames. Compared to find . -type f -exec, this solution runs md5 much less frequently, although this might not have a measurable impact.


7

I've created sample daemon app for this purpose. You can find it on Github. To make it run: Compile it using Xcode. Move Network Listener.app to /Applications dir. Move .networkConnected and .networkDisconnected to Your $HOME dir. Move Network-Listener.plist to ~/Library/LaunchAgents. Make .networkConnected and .networkDisconnected executable. It will ...


7

In my opinion, the best way to do it is by using Apple's own task scheduler: launchd, because you don't need to install third-party software. First, the theory: to run a script from the command line, you just run: osascript /PATH/TO/YOUR/script.scpt Knowing this, all you have to do is create a plist file in ~/Library/LaunchAgents/ with this: <?xml ...


6

This is an alternative to the other script I posted. This one runs in the background and tests the network connection every two minutes to determine if it is using an Ethernet connection or wireless. If on Ethernet, it enables Time Machine; when the connection switches to wireless it disables Time Machine. Step 1: System Check While connected to Ethernet, ...


6

This AppleScript will check if the Ethernet connection is active, and then run a Time Machine backup if so. First, disable Time Machine in System Preferences. The below method will run it automatically. While connected to Ethernet, you will need to run one command manually to confirm which interface Ethernet is assigned to. Run this command: ifconfig It ...


6

You can also add the file by following the commands below. This command will find the Bundle Identifier for the application you are trying to add to Assistive Devices. /usr/libexec/PlistBuddy -c 'Print CFBundleIdentifier' /Applications/enterapplicaitonnamehere.app/Contents/Info.plist Let's say the application you were trying to add was SKYPE. You would ...


6

Maybe it's easier to open Terminal, go the the parent folder and run i=0 for f in *; do if [[ -d "$f" ]]; then mv "$f" my-folders$i ((i=i+1)) fi done


6

How to compile Easy version (late 2015) make sure you have homebrew installed install dependencies download source code: git clone https://github.com/johmathe/Shotdetect.git cd Shotdetect run install script: ./compile.sh all find the binary "shotdetect-cmd" in the build directory. for details, check How to use section below Old version (up to late 2015)...


6

Create a new service with automator so your wife can decrypt the file using the contextual menu in the Finder. Create an Automator service Service receives selected files or folders in Finder Add a Run Shell Script action. Add your code: gpg -d $1 Save the service. It is now available in the Finder via Right click > Service > youServiceName.


6

As far as I know, you can't replicate this alert without enabling that option. If you do enable that option, you can cause a flash from Terminal using: osascript -e "beep" However, if you don't want to enable that option, you can use invert colours. Using the invert colours Accessibility option twice causes the screen to flash, therefore pressing the ...


6

You can use Sidekick which lets you perform 'actions' when changing location. The location is reported using the specific Wi-Fi, which means you can do things when the Wi-Fi changes. Sidekick is an application that automatically updates your laptop settings based on where you are. Just install the app, configure the places that you frequent, (home, work, ...


6

Like Linux, OS X is designed not to require restarting. There is no system wide means to determine if a restart is required - or even requested by a process. For situations where a restart is required, the process responsible for needing the restart is also responsible for organising the restart. Tools that update OS X are most likely to request a restart. ...


6

There's a way to do this if you're jailbroken with tweak called Activator by Ryan Petrich, and unfortunately it's the only solution because regular App Store apps aren't allowed to access settings like Bluetooth, Wi-Fi, and Personal Hotspot (even Workflow cannot access them). If you happen to be jailbroken, the way to do this with Activator is to go ...


6

As a proof of concept, I formatted a USB Thumb-drive using a GUID Partition Map and formatted it Mac OS Extended (Journaled) naming it "Encrypted". Then in Finder, I selected the disk named "Encrypted" and control-clicked selecting Encrypt "Encrypted"..., while setting its password to "password". When it was done encrypting, using Terminal, I ascertained ...


6

Okay, I've downloaded Hazel and tested the following AppleScript code on a New Rule to validate it works. The following code when used in an embedded script will set theResult to true on theFile, an audio file that is longer than 30 minutes. Any file 30 minutes or less, or a non-audio file will set theResult to false: set theResult to (do shell script "[[ $(...


6

The following has been tested under macOS Sierra 10.12.5 and macOS High Sierra 10.13.3, and works without any issue on my system. Using the example AppleScript code, from my original answer, saved as an AppleScript application named Flip Display 180° and added to System Preferences > Security & Privacy > Privacy > Accessibility, so as to allow it to ...


6

I didn't downvote wch1zpink's answer, but it's very much not the way that I would solve the problem. Having an app run an AppleScript every 5 seconds is a very inefficient way to handle this situation, especially since Mac OS already has a built-in feature to do this, namely, launchd. Save this as ~/Library/LaunchAgents/com.tjluoma.itunes-on-mount.plist (...


5

As far as I know, it's not possible. The reason is that Power Nap doesn't have an API that 3rd party apps can hook into (so apps could trigger a wake event or be notified when one occurs). Whether this will remain like that in the future depends upon Apple. It would be interesting to see if there's a simple way to detect when one is in power nap mode, but ...


Only top voted, non community-wiki answers of a minimum length are eligible