Tag Info

New answers tagged

0

I can't get the launchd logout item to work in 10.10.1, either, but the LogoutHook key in root's "com.apple.loginwindow.plist" works well. Are there any other examples for the launchd method? Anyway, I wrote an AppleScript to kill system volume at logout so the startup chime won't be heard on next startup. What I haven't worked out are the details for ...


0

You can use \r to return to the beginning of the line (column 1) and then \e[nC to move right n characters (column n+1). So: $ echo 12345678901234567890; echo $'\r\e[9CA10' $'\r\e[1CB2' 12345678901234567890 B2 A10


1

To set the flag to boot in safe mode is the easiest: sudo nvram boot-args="-x" The I guess we have to do something with; rc.boot figures out the type of boot (Multi-User, Safe, CD-ROM, Network etc.). In case of a network boot (the sysctl variable kern.netboot will be set to 1 in which case), it runs /etc/rc.netboot with a start argument. and this; ...


0

Not too sure what you are looking for, but I think you are looking something like column command. May be? $ echo \A10 \B2 | column -s\ -t A10 B2 For more info: man column.


0

if you have ruby installed, check out this ruby script https://github.com/ytbryan/aka The script provides functionalities like persistency and auto sourcing of dot file. You can manage aliases via terminal without breaking your workflow and open a text editor. disclaimer: I wrote this script and use it everyday. Let me know if there's any bug/idea. :)


5

The space character is used by bash to separate different parameters to a command so you need to protect/escape it if it occurs in filenames (or other parameters): mv /Users/diogosaraiva/Music/Downloads\ -\ Youtube/Novas/* /Users/diogosaraiva/Music/Downloads\ -\ Youtube/Tratadas You can also use quotes to protect the space characters from being ...


0

It's fairly simple to install Google Authenticator PAM plugin on Mac OS X if you have X code command line compiler installed. The code and instructions are here: https://code.google.com/p/google-authenticator/wiki/PamModuleInstructions Once you initialize your token (generate a code you feed to the app on your phone), you'll have two factor authentication ...


0

For a more general solution to the bash environment in automator differing from your own sou could simply load your personal bash profile at the first line of the automator bash script: source ~/.bash_profile This will make the path and any other environment variables you're used to using available from your automator script.


1

EUREKA! I found it! The way I achieved this marvelous setup, was with a combination of a tiny AppleScript saved as an .app file, and the brilliant, free third-party prefPane app, Do Something When. Instructions: Set up up the first part of the process as linked to in the question, which will give the following settings in AutoImporter (so that when you ...


-1

Adding 'exit 0' on line two fixed it


0

perhaps you'd like ScreenFlow; it offers lossless compression.


0

Sorry but due to how the iTerm2 preferences are stored, it isn't possible to do what you want. Color themes are not files that iTerm2 points to like you are thinking. Once you download a theme, you open it and iTerm2 imports the XML and adds it to the preference file. You then edit the preferences for the profile to use the new theme. Each profile ...


3

The alias command requires you to have no spaces around the = and also you should use " or ' to enclose the string not urge curly quote ‘ you have. That quote often appears in pdfs and books when the editing program tries to make things look nice. so the command should be alias showFiles="defaults write com.apple.finder AppleShowAllFiles TRUE; killall ...


3

You can't, at least not directly. /usr/bin/open will have told some other app to open the file, and then immediately dissociated itself from the whole affair. If you know which app did the actual open, you might be able to use scripting to tell the app to close it. Something like /usr/bin/open SomeFile.pdf # time passes /usr/bin/osascript -e 'tell ...


3

You can add certs to a keychain with the command line tool security It's been a while since I've used it, but IIRC the command would be: security add-trusted-cert -r trustRoot -k /path/to/keychain /path/to/cert Read the man page: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/security.1.html



Top 50 recent answers are included