Sample Header Ad - 728x90

Ask Different (Apple)

Q&A for power users of Apple hardware and software

Latest Questions

1 votes
0 answers
44 views
Cocoa Text System Extension
I started using the Compose Key feature of Cocoa Text System. This is the feature that allows this keyboard behavior in most applications: Option ⌥ + u + u == `ü` Option ⌥ + - + \> == `→` Option ⌥ + + 3 == `♥` Option ⌥ + C + C + C + P == `☭` ... etc. It is documented here: https://developer.app...
I started using the Compose Key feature of Cocoa Text System. This is the feature that allows this keyboard behavior in most applications: Option ⌥ + u + u == ü Option ⌥ + - + \> == Option ⌥ + + 3 == Option ⌥ + C + C + C + P == ... etc. It is documented here: https://developer.apple.com/library/archive/documentation/TextFonts/Conceptual/CocoaTextArchitecture/TextSystemArchitecture/ArchitectureOverview.html I would like to extend this to add the 3 Hungarian characters (also capitalized): Option ⌥ + o + o ➔ ő, Option ⌥ + o + i ➔ í, Option ⌥ + o + u ➔ ű Ideally, I want the same UI behavior as with Option ⌥ + u and Option ⌥ + e where you see a preview of the umlaut/accent and then add the desired letter. How is this possible? Cocoa Text
JC- (105 rep)
Jun 3, 2025, 09:44 AM • Last activity: Jun 5, 2025, 12:52 AM
0 votes
0 answers
40 views
Cocoa Text System: How to do simple character substitution on a string?
I have a question about how to do something fairly specific in the Cocoa Text System. I use a tailored ~/Library/KeyBindings/DefaultKeyBinding.dict file fairly often, to allow ready access to characters in other languages (Greek, Russian, Ukrainian) when it’s inconvenient to switch the entire keyboa...
I have a question about how to do something fairly specific in the Cocoa Text System. I use a tailored ~/Library/KeyBindings/DefaultKeyBinding.dict file fairly often, to allow ready access to characters in other languages (Greek, Russian, Ukrainian) when it’s inconvenient to switch the entire keyboard layout, and to do things like add HTML tags on either side of a piece of text to add blockquote or code tags for pieces of text. [This article](http://www.cppblog.com/biao/archive/2011/12/12/161952.html) , by Jacob Rus, goes into a fair bit of detail on how to do this, and I’m grateful for his example and clarity. It’s frequently the case that the title of an article appears in the URL for that article with the + sign rather than the space character delimiting each word in the title. Being able to type or paste an article title and quickly switch all the spaces for + signs would be an enormous convenience to me. I am, however, at a loss for how to do this. I have experimented a little with the NSText replaceCharacters method, but the results have been disappointing.
Fever (1 rep)
Feb 1, 2025, 05:30 PM • Last activity: Feb 5, 2025, 01:43 AM
8 votes
3 answers
2691 views
How to determine which one process owns particular window
How to know which process or App is responsible for creating/managing a particular window in macOS? In my case I got really cryptic error message, in non modal free floating window. Using message found that it is from Sparkle framework, but I don't know which process or App cause it. [1]: https://su...
How to know which process or App is responsible for creating/managing a particular window in macOS? In my case I got really cryptic error message, in non modal free floating window. Using message found that it is from Sparkle framework, but I don't know which process or App cause it.
diimdeep (1144 rep)
Mar 7, 2018, 05:37 PM • Last activity: Nov 15, 2024, 08:43 AM
4 votes
2 answers
718 views
How can I get a list of potential methods for DefaultKeyBinding.dict?
I would like to take more advantage of being able to define shortcuts in the Mac `DefaultKeyBinding.dict`. However I cannot find a comprehensible list of what I can remap. Right now I am searching for every bit of functionality I want to find and hope that someone already posted an answer for that....
I would like to take more advantage of being able to define shortcuts in the Mac DefaultKeyBinding.dict. However I cannot find a comprehensible list of what I can remap. Right now I am searching for every bit of functionality I want to find and hope that someone already posted an answer for that. I have just found that adding
{
  "@\UF702" = moveWordLeft:;
  "@\UF703" = moveWordRight:;
  "@$\UF702" = moveWordLeftAndModifySelection:;
  "@$\UF703" = moveWordRightAndModifySelection:;
}
enables me to use ⌘← and ⌘→ to move by word but I would like to extend this to ⌘⌫← and ⌘⌫→ to delete forward and backward until the end of word. I was trying to find a Apple's Cocoa documentation to get the full list of methods, but so far this is the best I could find: http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html Any recommendations?
Ádám Hunyadi (141 rep)
Apr 29, 2020, 08:12 AM • Last activity: Jun 2, 2024, 03:54 PM
0 votes
2 answers
4462 views
Installing cocoapods to macOS Catalina
In my mac mini I've running Catalina 10.15.7. I've also installed Xcode 12.4. Now as I'm using third party library I'm trying to install cocoapods in my mac. So I used this - sudo gem install cocoapods which I got from [official][1] website. But I'm getting this - Password: Fetching concurrent-ruby-...
In my mac mini I've running Catalina 10.15.7. I've also installed Xcode 12.4. Now as I'm using third party library I'm trying to install cocoapods in my mac. So I used this - sudo gem install cocoapods which I got from official website. But I'm getting this - Password: Fetching concurrent-ruby-1.1.8.gem Fetching fuzzy_match-2.0.4.gem Fetching i18n-1.8.10.gem Fetching thread_safe-0.3.6.gem Fetching tzinfo-1.2.9.gem Fetching activesupport-5.2.5.gem Fetching nap-1.1.0.gem Fetching httpclient-2.8.3.gem Fetching algoliasearch-1.27.5.gem Fetching ffi-1.15.0.gem Fetching ethon-0.12.0.gem Fetching typhoeus-1.4.0.gem Fetching netrc-0.11.0.gem Fetching public_suffix-4.0.6.gem Fetching addressable-2.7.0.gem Fetching cocoapods-core-1.10.1.gem Fetching claide-1.0.3.gem Fetching cocoapods-deintegrate-1.0.4.gem Fetching cocoapods-downloader-1.4.0.gem Fetching cocoapods-plugins-1.0.0.gem Fetching cocoapods-search-1.0.0.gem Fetching cocoapods-trunk-1.5.0.gem Fetching cocoapods-try-1.2.0.gem Fetching molinillo-0.6.6.gem Fetching atomos-0.1.3.gem Fetching colored2-3.1.2.gem Fetching nanaimo-0.3.0.gem Fetching xcodeproj-1.19.0.gem Fetching escape-0.0.4.gem Fetching fourflusher-2.3.1.gem Fetching gh_inspector-1.1.3.gem Fetching ruby-macho-1.4.0.gem Fetching cocoapods-1.10.1.gem Successfully installed concurrent-ruby-1.1.8 Successfully installed i18n-1.8.10 Successfully installed thread_safe-0.3.6 Successfully installed tzinfo-1.2.9 Successfully installed activesupport-5.2.5 Successfully installed nap-1.1.0 Successfully installed fuzzy_match-2.0.4 Successfully installed httpclient-2.8.3 A new major version is available for Algolia! Please now use the https://rubygems.org/gems/algolia gem to get the latest features. Successfully installed algoliasearch-1.27.5 Building native extensions. This could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/ext/ffi_c/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20210406-1384-1vtmk4p.rb extconf.rb checking for ffi.h... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/$(RUBY_BASE_NAME) --with-ffi_c-dir --without-ffi_c-dir --with-ffi_c-include --without-ffi_c-include=${ffi_c-dir}/include --with-ffi_c-lib --without-ffi_c-lib=${ffi_c-dir}/lib --enable-system-libffi --disable-system-libffi --with-libffi-config --without-libffi-config --with-pkg-config --without-pkg-config /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:467:in `try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:585:in `block in try_compile' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:534:in `with_werror' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:585:in `try_compile' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:1109:in `block in have_header' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:959:in `block in checking_for' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:361:in `block (2 levels) in postpone' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:331:in `open' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:361:in `block in postpone' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:331:in `open' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:357:in `postpone' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:958:in `checking_for' from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:1108:in `have_header' from extconf.rb:10:in `system_libffi_usable?' from extconf.rb:42:in `' To see why this extension failed to compile, please check the mkmf.log which can be found here: /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-19/2.6.0/ffi-1.15.0/mkmf.log extconf failed, exit code 1 Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0 for inspection. Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-19/2.6.0/ffi-1.15.0/gem_make.out I've seen this question but my ruby version is - ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19] I've also take a look in this but could not able to solve the problem. **Edit:**
I've used this - xcode-select --install but got - xcode-select: error: command line tools are already installed, use "Software Update" to install updates So, Is there any ruby dependency I've to install first or I just missed something?
mefahimrahman (141 rep)
Apr 6, 2021, 06:02 AM • Last activity: Nov 25, 2021, 08:14 AM
1 votes
1 answers
298 views
Can app developers control the way their app handles iCloud save conflicts?
I saved data to iCloud on laptop A, then opened the document on laptop B to update a part of it (with data only available on laptop B). After saving on laptop B, I realized that iCloud didn't give me the latest data that I had previously saved on laptop A, which was more important than what I was ad...
I saved data to iCloud on laptop A, then opened the document on laptop B to update a part of it (with data only available on laptop B). After saving on laptop B, I realized that iCloud didn't give me the latest data that I had previously saved on laptop A, which was more important than what I was adding. So I committed the new info to memory, and went back to laptop A, and added it to the document that needed it. Later (after a surprisingly long time), the app complained about a save conflict: enter image description here In this particular case I knew exactly what data was where, because I was expecting a conflict. But normally I would not remember that, and I was surprised that I was not presented with a side-by-side comparison to enable me to choose what to keep. Is this screen purely a product of the app? Or are there certain things built into an iCloud framework (iCloudKit?) that they have no control over? In other words, is it possible to build an app that presents the users with the information they need to resolve document save conflicts? Or has Apple tied our hands, and do we just have to accept their sub-optimal syncing _and_ sub-optimal resolution tools?
iconoclast (10628 rep)
Sep 24, 2021, 06:50 PM • Last activity: Sep 24, 2021, 09:55 PM
3 votes
5 answers
1073 views
Examples of apps in the Mac App Store not made with objective-c/c/c++?
Are there any apps in the store made using mono, ruby or lisp or put together in another alternative way. Do you know of any? The reason I'm asking is because I'm already making apps using cocoa/objective-c, and I really love ruby and obscure languages.
Are there any apps in the store made using mono, ruby or lisp or put together in another alternative way. Do you know of any? The reason I'm asking is because I'm already making apps using cocoa/objective-c, and I really love ruby and obscure languages.
neoneye (3212 rep)
Jun 11, 2011, 12:32 PM • Last activity: Sep 4, 2021, 11:41 PM
3 votes
3 answers
2870 views
How can I change the aqua theme in Yosemite?
How can I change the aqua theme/skin to a dark one in Yosemite? I'm referring to the window title bars, scroll bars, buttons, etc (the cocoa aqua ui theme?). Everything is grayish by default, but i'd like a dark theme.
How can I change the aqua theme/skin to a dark one in Yosemite? I'm referring to the window title bars, scroll bars, buttons, etc (the cocoa aqua ui theme?). Everything is grayish by default, but i'd like a dark theme.
trusktr (1469 rep)
Nov 6, 2014, 08:37 PM • Last activity: Apr 15, 2021, 05:26 PM
5 votes
2 answers
15833 views
Installing cocoapods on macOS Mojave
I have looked through a lot of these questions and none seem to apply. I am trying to install cocoapods and run pod init in my xcode project. When I run `sudo gem install cocoa pods`I get right the end and see this: Building native extensions. This could take a while... ERROR: Error installing cocoa...
I have looked through a lot of these questions and none seem to apply. I am trying to install cocoapods and run pod init in my xcode project. When I run sudo gem install cocoa podsI get right the end and see this: Building native extensions. This could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. current directory: /Library/Ruby/Gems/2.3.0/gems/ffi-1.12.2/ext/ffi_c /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -I /Library/Ruby/Site/2.3.0 -r ./siteconf20200314-453-8td9mi.rb extconf.rb mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/include/ruby.h extconf failed, exit code 1 Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/ffi-1.12.2 for inspection. And of course when I run pod init inside my Xcode project I get: -bash: pod: command not found
The Retro Gamer (51 rep)
Mar 15, 2020, 03:50 AM • Last activity: Jul 22, 2020, 09:10 AM
1 votes
1 answers
431 views
No window or view controller in Xcode 11.2.1
I am new to macOS programming, I have Xcode 11.2.1 and Catalina OS. What is strange is I look at tutorials online and they all have Window and view controller in main storyboard, I only have menu there. Also tutorials have "Cocoa app" under templates for Mac OS, when I choose it, there is only "app"...
I am new to macOS programming, I have Xcode 11.2.1 and Catalina OS. What is strange is I look at tutorials online and they all have Window and view controller in main storyboard, I only have menu there. Also tutorials have "Cocoa app" under templates for Mac OS, when I choose it, there is only "app" option. What am I missing here?
Blissful (113 rep)
Dec 14, 2019, 10:07 AM • Last activity: Dec 14, 2019, 11:38 AM
1 votes
0 answers
165 views
How to I create a Dock menu for my AppleScript application?
I just created an application with AppleScript, and I would like to create custom menu items for its Dock menu, as shown in the image below. How do I do that? I'm somewhat familiar with AppleScript, so it would be nice if someone could show me how to add a menu item that triggers an applescript [![D...
I just created an application with AppleScript, and I would like to create custom menu items for its Dock menu, as shown in the image below. How do I do that? I'm somewhat familiar with AppleScript, so it would be nice if someone could show me how to add a menu item that triggers an applescript Dock Menu
Peter Schorn (430 rep)
Dec 10, 2019, 02:11 AM • Last activity: Dec 10, 2019, 02:27 AM
2 votes
0 answers
149 views
Monitoring directory in finderSync extension failed to work
I have developed a Cocoa application with a FinderSync extension through which a newly created directory is monitored. Sometimes it works fine but sometimes when I activate the Drive and Dropbox extension (from Settings > Preferences > Extensions ), my application stops monitoring the directory for...
I have developed a Cocoa application with a FinderSync extension through which a newly created directory is monitored. Sometimes it works fine but sometimes when I activate the Drive and Dropbox extension (from Settings > Preferences > Extensions ), my application stops monitoring the directory for which it is intended. I have searched for the solution but haven't found anything. Do I need to register my application with an OS X service?
Smit (121 rep)
Mar 3, 2016, 11:24 AM • Last activity: Jul 31, 2018, 12:33 AM
2 votes
2 answers
3059 views
Does anyone know how to disable unicode text input in text fields?
I absolutely love the Cocoa text engine. A few modifications to a little xml file - `~/Library/DefaultKeyBinding.dict` - and you can get just about any key sequence to work in any standard Cocoa text field in any application. For example, I've added a bunch of emacs key bindings like Ctrl A for goin...
I absolutely love the Cocoa text engine. A few modifications to a little xml file - ~/Library/DefaultKeyBinding.dict - and you can get just about any key sequence to work in any standard Cocoa text field in any application. For example, I've added a bunch of emacs key bindings like CtrlA for going to the beginning of a line, ⌥F for moving forward a word, ⌥B for moving back a word, etc. Anyhow, I've noticed that a few applications - even though they seem to use the Cocoa text engine and use standard Cocoa text field widgets - have this annoying way of subverting my emacs key bindings. In some text fields, the Option key is used to type Unicode international characters. Is there any way of disabling this globally? I don't ever want the Option key to do this - if I want to type a Unicode character, I'll use the character viewer. Any ideas?
Ted Middleton (121 rep)
Mar 17, 2013, 06:14 AM • Last activity: Jan 24, 2018, 10:20 PM
1 votes
2 answers
1031 views
How to install both Cocoa and X11 of Emacs (preferably with Homebrew)?
I want to try out and compare both the Cocoa- and X11-based versions of Emacs. In general, I try to install all such packages through Homebrew, but in this case it looks like I Homebrew requires me to choose one of the two versions. **Is there a way for Homebrew to install and simultaneously manage...
I want to try out and compare both the Cocoa- and X11-based versions of Emacs. In general, I try to install all such packages through Homebrew, but in this case it looks like I Homebrew requires me to choose one of the two versions. **Is there a way for Homebrew to install and simultaneously manage two parallel installations of Emacs?** If not, I suppose that I'd install/manage one of the two versions with Homebrew, and the other one "by hand". In this case, however, I'd like the non-Homebrew installation to be configured and built exactly as Homebrew would. This means configuring the build in the same way as Homebrew does, except for those aspects of the installation (e.g. locations of runtime files) that would directly conflict with Homebrew's Emacs installation. **What's the simplest way to generate an installation script that would faithfully replicate Homebrew's build for one of these two versions of Emacs?** (I imagine that the task mentioned in the last question would be a triviality for Ruby programmers, but I don't know the first thing about Ruby. I write code for a living, though, so solutions involving some programming–say, python/perl/bash scripting–would be fine with me.) BTW, the solution does not have to be "super maintainable", since I expect that after running this side-by-side comparison for at most a few months I'll pick one of the two versions, and stick with it from then on. --- **Background**
For *many, many* years I've been happily running Emacs on Terminal, in text-only mode. What makes this set-up less ideal than it has been so far is that now I want to start using Emacs' Org Mode, which has many key combinations that don't get correctly transmitted by Terminal. For example, when I type M-S-, what Emacs actually receives—via Terminal—is M-. This is a known issue, and there are official work-arounds for it, but I'd prefer to avoid them altogether if I can. My hope is that one or both of the versions of Emacs mentioned in this question will do this. But, since I've been using Emacs 5-10 hrs/day for almost three decades now, I've become quite sensitive to the details of my interaction with it. This is why I want to try both the Cocoa- and X11-based versions of it side-by-side before settling for one. If neither fits the bill, I'll try AquamacsEmacs. I tried AE several years ago, but it did not win me over (for reasons I can no longer remember), so I see AE as a distant third choice.
kjo (1060 rep)
Nov 28, 2014, 12:10 PM • Last activity: Sep 11, 2017, 12:18 AM
-1 votes
1 answers
3808 views
Coco-applescript is in my documents folder. I am not a developer. Is it changing the way my apps work?
I found Cocoa-AppleScript Applet 2.app in my documents folder. What is this? I noticed it when I was in iTunes and was going to add to my library. I just had to reinstall my OS because of problems and I do remember one of the problems was the iTunes would no longer open at all. I looked this Cocoa t...
I found Cocoa-AppleScript Applet 2.app in my documents folder. What is this? I noticed it when I was in iTunes and was going to add to my library. I just had to reinstall my OS because of problems and I do remember one of the problems was the iTunes would no longer open at all. I looked this Cocoa thing up and it said something about changing how things should work in iTunes. I don't want to have the same problem again. I trust that things like that should be ok. I am not a developer and have no reason for this app.
Graham (1 rep)
Jun 8, 2017, 02:09 AM • Last activity: Jun 9, 2017, 12:51 AM
3 votes
1 answers
163 views
What is the name of Network Setup Assistant's window?
This is a somewhat common interface, and is generally used to move a user through a series of sequential operations. It can be found in Apple's Network Setup Assistant (System Preferences > Network > Assist Me > Assistance), in many third party .pkg installers, and in applications like VirtualBox. I...
This is a somewhat common interface, and is generally used to move a user through a series of sequential operations. It can be found in Apple's Network Setup Assistant (System Preferences > Network > Assist Me > Assistance), in many third party .pkg installers, and in applications like VirtualBox. It has a Low Opacity (light) image as a background, with a translucent Text Field on it, with a visually distinct bottom row with the next and previous buttons. Here is an example: Image
Brandon Bradley (41 rep)
Mar 10, 2017, 01:13 AM • Last activity: Mar 10, 2017, 08:11 AM
0 votes
1 answers
828 views
How can get an applescript to add itself to the open at login menu automatically
In El Capitan how can I get an applescript to make itself open at login? Such as adding it to the login items automatically? I want to be able to send people the applescript and the first time they open it, it automatically sets itself to open at login in future. If applescript is too limiting I don...
In El Capitan how can I get an applescript to make itself open at login? Such as adding it to the login items automatically? I want to be able to send people the applescript and the first time they open it, it automatically sets itself to open at login in future. If applescript is too limiting I don't mind using a cocoa applescript in Xcode, although I would like to avoid it.
cjeccjec (77 rep)
Mar 8, 2016, 06:05 AM • Last activity: Mar 8, 2016, 06:49 AM
3 votes
1 answers
211 views
moveWordForward: on ⌥-f in El Capitan doesn't repeat
I've used Jacob Rus' cocoa text system bindings for many years to give me more emacs like bindings in cocoa text fields (apple doc here . Since El Capitan I find that option-f which does moveWordForward: only works once and doesn't repeat if I hold down the keys. option-b (moveWordBackward:) does re...
I've used Jacob Rus' cocoa text system bindings for many years to give me more emacs like bindings in cocoa text fields (apple doc here. Since El Capitan I find that option-f which does moveWordForward: only works once and doesn't repeat if I hold down the keys. option-b (moveWordBackward:) does repeat as it always has and so does option-rightarrow (which I assume also does moveWordForward:). I played with KeyBindingsEditor and found that option-control-f is bound to moveWordForward: in /System/Library/Frameworks/AppKit.framework/Resources/StandardKeyBinding.dict and it repeats (also that option-right is bound to moveWordRight:). It also confirmed that option-f is bound to moveWordForward: in the Standard and my user KeyBinding.dict. I've checked for other bindings on option-f in System Preferences and haven't found any. Anyone know what might be wrong or how I can debug this further? OS X 10.11.1, 3.4 GHz i7 iMac, 24GB RAM, 1TB Fusion, Apple Wired Keyboard
Howard (41 rep)
Oct 28, 2015, 05:15 PM • Last activity: Jan 13, 2016, 03:58 AM
2 votes
0 answers
161 views
How to customize drag-n-drop-to-Terminal path escaping results?
How can I change the way in which filenames are escaped (formatted) when dragged from applications and dropped into Terminal? For example, paths may be escaped with `\`, just spaces (` `), or other options. `Path Finder`, for example, has the following options under `Copy Path`: - UNIX - HFS - Windo...
How can I change the way in which filenames are escaped (formatted) when dragged from applications and dropped into Terminal? For example, paths may be escaped with \, just spaces ( ), or other options. Path Finder, for example, has the following options under Copy Path: - UNIX - HFS - Windows - Terminal - URL - Name Specifically, I'm looking for the setting(s) that can be applied via the shell, such as: defaults write tld.domain.appOrLib SomeSettingScope -string "SettingDetails"
ylluminate (5787 rep)
Dec 5, 2015, 03:56 PM • Last activity: Dec 5, 2015, 05:07 PM
3 votes
1 answers
183 views
How to get the postion of the lid
I am trying to figure out what the position of the lid is. Whether it is open or closed. Is there a terminal command or a cocoa code snippet for this? I've already tried `pmset -g` but i can only get the sleep modes and the lidwake status.
I am trying to figure out what the position of the lid is. Whether it is open or closed. Is there a terminal command or a cocoa code snippet for this? I've already tried pmset -g but i can only get the sleep modes and the lidwake status.
wasserpanther (33 rep)
May 28, 2015, 06:13 AM • Last activity: May 28, 2015, 08:19 AM
Showing page 1 of 20 total questions