Tag Info

Hot answers tagged

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 ...


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


1

If the applications are scriptable like safari is, then you can possibly have a Applescript application running and checking if there is a selection. Then respond by running you task or calling the Automator workflow when there is. Afaik Applications do not send out notifications when text is selected so this would have to work using a periodic check. ...


1

Since it appears that Automator doesn't have a "Get Spotlight Comment" action (surprisingly), maybe you can do this with AppleScript. (See this forum) Something like: tell application "Finder" set thisItem to "Macintosh SSD:untitled folder" set Comm to comment of folder thisItem (* get comment *) end tell return Comm (* to return the Comment ...


1

I'll take my comment and make it into an answer; assuming I understand what you're looking for at least. Tested this code and it works fine for me. You'll need to adjust the numbers to indicate the relative position of your monitor. Assuming you don't move your screens around, it's a one-time entry. Credit to this answer on SO which also provides a link to ...


1

This script in an Automator Dictation command seems to work. Not the fullscreen will not work properly if run in Automator or Script editor. It picks up the previous window 1. But any time I got the Dictation command to work. ( always find a bit of a pain to get them to understand me) It got the right window 100%. This script uses system profiler to get ...


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 ...



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