Hot answers tagged

6

The left part of osascript -e 'user locale of (get system info)' is the language selected in Setup Assistant (I think). The language at the top of the list in the Language & Text preferences should be the second line of defaults read -g AppleLanguages.


5

No - Cocoa is not an X windows compatible system. The closest you will get is screen sharing (VNC). See this question for more info. For Lion like background sharing with 10.5 and 10.6 see this question on third party VNC tools.


5

I don't have a macbook by my side, is maybe ioreg -r -k AppleClamshellState -d 4 | grep AppleClamshellState | head -1 still working ?


5

There is an OSX only way to do this, without using any 3rd party apps. You just have to create a file ~/Library/KeyBindings/DefaultKeyBinding.dict and put what you want in it. See an example. Since I dont use Vi, I'm not sure what the specific keybindings are, but there is a great page about Customizing the Cocoa Text System that should get you going.


4

You can use Xcode for standard C++ programs. You can also use it with OpenGL. You can also use Eclipse for C++. Here's how to setup OpenGL in Eclipse CDT for Mac.


3

Restoring to 4.2 is not possible unless you had your iPhone jailbroken when 4.2 was the current version and saved Apples signature with this. But if you only want back to iOS 4 you might still have a chance, because as far as I know 4.3.5 images are still being authenticated by Apple. So you can try and download the 4.3.5 image (just google for it), and ...


3

There are two option: Vi Input Manager which hasn't been updated since 2009. KeyRemap4Macbook which I've used for a number of different options and has a Vi mode. I can't speak for how well the Vi mode works but the other aspect has been great in a few things I use it.


3

You can use a usability tool from Apple to see the structure of most user interfaces; try the Apple developer tool Accessibility Inspector. I believe it will do what you need. The latest Xcode download may not include this tool as standard. You may need to download an additional package to find this tool.


3

In this case I would install Aquamacs or Emacs for OS X to get the Cocoa version and Homebrew for the X11 version. Aquamacs is tuned to appear more Mac like so might not do exactly what you want - but all this is done in configuration so easy to change for an emacs veteran


2

These kind of windows are commonly called wizards, or specifically in the context of macOS, a term you already mentioned: setup assistants. That term actually describes the entire sequence, so you might want to call a single screen a wizard screen, wizard step or wizard dialog instead. The transparent background image is something specific to macOS; most ...


2

This script will print information(owning PID) about visible windows. And information for the window that changed position within a 5 second interval. Credit goes to superuser answer #!/usr/bin/env python import Quartz import time from Foundation import NSSet, NSMutableSet def transformWindowData(data): list1 = [] for v in data: if not v....


1

A Cocoa-AppleScript doesn't just appear in your documents folder. Someone put it there. With that said, it won't do anything if you don't run it. If you didn't make it, and if someone else uses your computer, I'd ask them what it's there for.


1

Add it to the login items (like you mentioned.) Note that (to accomplish this easily) you have to save it as an application bundle. Using this guide, you can automate the process. tell application "System Events" -- Adding a login item for the current user make new login item at end of login items with properties {path:"/Applications/**{YOUR APP ...


1

Turns out a new keyboard fixed it.


1

Homebrew no longer supports the --with-x option, but you can build an x11 version of emacs for OS X from the source pretty easily. configure --with-x --without-makeinfo --with-jpeg=no --with-gif=no --with-tiff=no However I had to do a couple of hacky things to make this work and I'm not sure why. To get the configure script you have to use autoconf, which ...


1

If you're still looking for a method to darken your UI in Yosemite, download Flavours 2 and choose the "Smooth Criminal" flavour. Flavours 2 is still in Beta, but most things look great with this skin.


1

This is specific to Firefox and how plugins are able to interact with its windows.


1

This fixes the first quirk but not the second one: tell application "System Events" bundle identifier of process 1 whose id is 1234 end tell tell application id result reopen activate end tell The same applies to open: open -a "$(ps -p 1234 -o comm=)" If there are no open windows, reopen opens a new default window, and if all windows are ...


1

According to this it is possible but with caveat. App Sandbox Temporary Exception Entitlements Note: This chapter describes property list keys specific to the OS X implementation of App Sandbox. They are not available in iOS. A temporary exception entitlement permits your OS X app to perform certain operations otherwise disallowed by App Sandbox....


1

Some applications and text views just don't support DefaultKeyBinding.dict. If you create a new keylayout with Ukelele, you can for example make ⌥A insert nothing instead of å. Or you can reassign key combinations that enter dead key states (like ⌥U on the U.S. layout) so that they can be in used in DefaultKeyBinding.dict. Keyboard layouts in ~/Library/...


1

As you say the answer is no. OSX does not include a remote graphics display whilst X11 does. (The Cocoa API is based on the NeXTStep API which was drawn by Display Postscript which allowed remote graphics display - however the license cost too much for Apple to use) However this is a general answer for all applications. But you can configure matplotlib to ...


1

Try: tell application "Terminal" set myTabs to every tab of window 1 set myData to {} repeat with aTab in myTabs set aTab's selected to true delay 0.2 set windowTitle to name of window 1 set customTitle to aTab's custom title set end of myData to "Window:" & windowTitle & return & "Custom Title:...


1

It's a semi-transparent image. Here's two quick grabs. Noisy background: Black background: These images were takes from a third generation iPad running iOS 5.1 (9B176)


1

I don't think there is a way to do either of your choices built in, and I don't know of any tool to do them for you. The only way to get this ability in every application would be to have a plugin which is automatically loaded into every application and replaces the default scrollbars. A possible workaround is to scroll just a little bit, so that the page ...


1

You might be able to connect a VNC server and client tunneled through ssh, and view an app remotely that way.


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