Tag Info

Hot answers tagged

13

You can with open "tel://+316123456789" start a phone call process - but you still need to click on the "Call" button to make the call.


3

I have an executable called rem somewhere in my $PATH with the following contents: #!/usr/bin/env python import os import sys if len(sys.argv) > 1: for arg in sys.argv[1:]: if os.path.exists(arg): os.system('osascript -e \'tell app "Finder" ' + 'to move the POSIX file "' + ...


3

While the backup is running, detailed information gan be gained by tmutil status which should return something like this: Backup session status: { BackupPhase = Copying; ClientID = "com.apple.backupd"; DateOfStateChange = "2014-12-18 14:14:21 +0000"; DestinationID = "B4AF88-5AD5-49BE-B254-650B44E20499"; DestinationMountPoint = ...


2

I found this for you scrutil Slightly more advanced due to the nature of the command line, the free utility called screenutil gets the job done immediately with a quick entry into the Terminal. Launch Terminal and drag and drop scrutil into the command line to use it once, but if plan on using it often it’s a good idea to toss scrutil into ...


2

Unfortunately the answer is negative unless you are willing to switch to GNU command line utilities. OS/X command line tools derive from BSD sources which process command line arguments differently. This all boils down to usage of the library calls like getopt() in the standard C-library. OS/X command line tools use the standard library functions whereas GNU ...


1

To get a list of invalid brew formulas: #!/usr/bin/env bash for formula in ${brews[@]}; do brew info ${formula} >/dev/null 2>&1 || echo ${formula} done To get a list of invalid casks: #!/usr/bin/env bash for cask in ${casks[@]}; do brew cask info ${cask} >/dev/null 2>&1 || echo ${cask} done (brews and casks are the arrays ...


1

Well the error you're getting sounds like you've tried changing the $PATH variable somewhere. Possible candidates (not all of them need to exist) are /etc/profile /etc/bashrc ~/.bash_profile ~/.bash_login ~/.bashrc ~/.profile Find all lines starting with export that contain the path you've posted above in those files and prefix them with a # to disable ...


1

In addition to Ruby, here's a Python version: #!/usr/bin/env python import Cocoa import sys Cocoa.NSWorkspace.sharedWorkspace().setIcon_forFile_options_(Cocoa.NSImage.alloc().initWithContentsOfFile_(sys.argv[1].decode('utf-8')), sys.argv[2].decode('utf-8'), 0) or sys.exit("Unable to set file icon") ./set-image.py image.png myfile Python that ...



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