Tag Info

New answers tagged

0

I've haven't an OSX up my sleeve but I think the problem is : ^C is not like Ctrl+C. What you are looking for is : keystroke "c" using control down edit: Was too slow :3


1

^C is not a valid keystroke. Use: tell application "System Events" keystroke "c" using control down end tell


1

Use find: find "$arg" -iname \*.txt -o -iname \*.h -o -iname \*.py|while read f;do :;done Use IFS= read -r if the paths can end with spaces or contain backslashes. Or install bash 4: brew install bash;echo /usr/local/bin/bash|sudo tee -a /etc/shells;chsh -s /usr/local/bin/bash Then: shopt -s globstar nocaseglob;for f in "$arg"/**/*.{txt,h,py};do ...


0

Type the command in DTerm, press enter, then press Esc. As @CousinCocaine suggested.


2

Dterm You might want to take a look at Dterm. This is a dialog under commandshiftreturn and does exactly what you are looking for and it does even more than that. As it says on the site: "DTerm provides a context-sensitive command line that makes it fast and easy to run commands on the files you're working with and then use the results of those ...


4

Instead of .bat, save it as .command. A .command file will run the contents of the file in Terminal upon double-click, just like a .bat would do on Windows. If you can't run the file because you don't have permission to execute the command file, you need to set 'execute' on the file for it to allow you to run it: chmod u+x /path/to/file.command u is the ...


1

I highly recommend the app SelfControl: http://selfcontrolapp.com You can use either a whitelist or a blacklist of websites and you can set it for a specified time limit. It's great for either blocking the sites you know will tempt you, or allowing only certain sites you know you'll need. You can also edit the hosts file at /private/etc/hosts to block ...


1

For reading a text file of hostnames into an AppleScript list, see Read textfile into list in Applescript. For looping over hostnames within your AppleScript list see An AppleScript list iterate/loop example: set myList to {"Hello", "Goodbye", "I must be going"} repeat with theItem in myList say theItem end repeat do shell script To avoid launching ...


0

I found the install directory. Apparently it was the action posted here. The action is installed in ~/Library/Address Book Plug-Ins



Top 50 recent answers are included