Tag Archives: AppleScript

How to authenticate a shell script with the OS X GUI

NewTerminalIconXWhen you run various commands and scripts in OS X, you may need to first authenticate the actions you are taking as administrator. While some commands include options for providing authentication, generally you will run the “sudo” command as a precursor to your desired one, in order to promote the desired one to run with full administrative access privileges. Continue reading

Three ways to open the current Finder window in the OS X Terminal

NewTerminalIconXOS X includes a service where you can open the OS X Terminal at a selected folder, but this is not always the optimal approach. For one, it requires you select a subfolder to act on, which will have the Terminal open it instead of the current Finder window, requiring you to then “cd ..” to get to the folder you want. This also requires there be a folder to select in order for this to work in the first place. Alternatively, there are three additional approaches you can use which may be quicker and easier approaches. Continue reading

Remote Apple Events may break with Security Update 2015-002

AppleScriptEditorIconXRemote Apple Events allows you to use AppleScript routines to control another Mac; however, if you have installed the latest security updates for OS X, then you might find your scripts and any programs that use Remote Apple Events may not work, and give you an error. This may be especially true for communication between systems running OS X 10.8 and 10.9 Server, and OS X 10.10. Continue reading

Fix ‘Folder Actions Dispatcher’ using high CPU in Yosemite

ActivityMonitorIconXAfter upgrading to OS X Yosemite, you might find your system running rather slowly, even when there are no obvious reasons for it, such as a program you have open that is performing some computationally intensive task. Upon investigating this, you might resort to opening Apple’s Activity Monitor program to see what is running in the background, and find a process called Folder Actions Dispatcher running and using between 80 to 100 percent of your CPU. Continue reading

How to set up and use Folder Actions on your Mac

AppleScriptEditorIconXOne of the hidden gems in OS X is a scripting service called Folder Actions, where you can bind an AppleScript to run whenever the contents of a specified folder are changed. This feature can be exceptionally useful, not only for helping you organize files and folders, but also for helping you monitor aspects of your system.

Unfortunately Apple does not promote Folder Actions, and perhaps they might someday go the wayside Continue reading

Apple introduces simplified programming with Swift

SwiftIconToday Apple has introduced a new programming language it has called Swift (not to be confused with the Swift language for parallel scripting), which is intended to be a modern and easy to use language that avoids the complexities in XCode, and allows for quicker application development.

While Apple has progressively simplified programming Continue reading