background preloader


Facebook Twitter

Remapping Keys on Mac OS X Mountain Lion — Matthew Palmer. Here's how to remap any of your keyboard keys to any combination of keys on Mac OS X.

Remapping Keys on Mac OS X Mountain Lion — Matthew Palmer

Initially, I wanted to remap the Caps Lock key to Command+R for two reasons: I'm always hitting Command+R for building and running iOS apps and to refresh web pagesCaps Lock is otherwise entirely useless Here are the steps and workarounds I used to get what I wanted. I've essentially remapped the Insert, Home, Page Up, Delete, End and Page Down, and Caps Lock keys into a useful macro block. Download KeyRemap4MacBook; it's pretty much the only decent key remapper for Mac. Not exactly perfect, right? OS X Daily. Building OS X Apps with JavaScript by Tyler Gaw.

OS X Yosemite introduced JavaScript for Automation.

Building OS X Apps with JavaScript by Tyler Gaw

This makes it possible to access native OS X frameworks with JavaScript. I’ve been digging in to this new world and putting together examples along the way. In this post I’ll explain the basics and step through building a small example app. WWDC 2014 included a session on JavaScript for Automation. The session explained that you would be able to use JavaScript in place of AppleScript to automate applications. During the session the presenter explains the Objective-C bridge. ObjC.import("Cocoa"); The Foundation framework does what its name suggests. As far as I can tell, you can use JavaScript to build anything that you can with Objective-C or Swift. Dropbox - Script to Sync Multiple Macs. For years I used a combination of tactics to keep directories in sync between my many computers.

Dropbox - Script to Sync Multiple Macs

Now I just use this simple bash script which syncs multiple macs with Dropbox using symbolic links. I keep a complex set of files in sync between my various computers. These range from '~/Documents/' to application preferences from '~/Library/Application Support/' to sundry other files in use around my computer. The syncing script in this post automagically takes any number of files in Dropbox and creates symlinks from them to the appropriate places on my computer. Update May 27, 2014 - Updated script with better error handling and fixed two bugs.

Disable Keyboard OS shortcuts on Macbook Pro - Forums. All Archived Posts. Your First Mac App: Adding a Track Object. In this app, there are two custom classes that contain application logic.

Your First Mac App: Adding a Track Object

The Xcode template provided an AppDelegate class and created an instance of it in the nib file for you. When you made connections between the UI elements and the app delegate, you added custom code to the AppDelegate class. The app delegate acts as a controller object in the Model-View-Controller design pattern by updating views and managing model objects that store the actual application data. You now need to implement the model object that stores the track’s volume. You need to implement a Track class and create an instance of it in the app delegate. Create Header and Implementation Files for the Track Class The first task is to create header and implementation files for the new Track class.

To create the files for the new class In the Save dialog, leave the group and targets as they are, and click Create. The files should now be located in your project’s TrackMix group folder. Implement the Track Class Recap. Automated Workflows. Shell Building Blocks. Mac Automation Made Simple (Video) How to create simple Mac apps from shell scripts · Mathias Bynens. Basically, a Mac application has a .app extension, but it’s not really a file — it’s a package.

How to create simple Mac apps from shell scripts · Mathias Bynens

You can view the application’s contents by navigating to it in the Finder, right-clicking it and then choosing “Show Package Contents”. The internal folder structure may vary between apps, but you can be sure that every Mac app will have a Contents folder with a MacOS subfolder in it. Inside the MacOS directory, there’s an extension-less file with the exact same name as the app itself. This file can be anything really, but in its simplest form it’s a shell script. MacScripter. Mac OS X Automation. OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Osascript / osacompile : command to run AppleScript.

Astuce : désactiver la sauvegarde Time Machine en local de Lion. Une des nouveautés d'OS X Lion est la sauvegarde en local de Time Machine.

Astuce : désactiver la sauvegarde Time Machine en local de Lion

Cette fonction est très pratique si vous utilisez un Mac portable : la sauvegarde Time Machine n'était jusque-là effectuée uniquement l'ordinateur branché à son disque dur externe. Désormais, le système continue la sauvegarde en local quand le disque dur externe n'est pas disponible et il rassemble les deux sauvegardes une fois l'ordinateur à nouveau relié au disque. Une bonne idée, mais qui peut poser problème quand l'espace disque est limité sur le Mac.

C'est particulièrement le cas des MacBook Air : avec 64 Go pour l'entrée de gamme, l'espace de stockage interne aura vite fait d'être totalement saturé si vous ne branchez pas suffisamment souvent le disque dur externe. Si vous notez une baisse trop rapide de l'espace disque restant, c'est peut-être que la sauvegarde en local est trop gourmande.

Pour réactiver la sauvegarde en local, utilisez à nouveau le terminal avec cette commande : sudo tmutil enablelocal. Hack Mac - The Ultimate Mac OS X Security Website.