Previous | Index | Next |
Keyboard input source methods
currentKeyboardLayoutInputSourceID
If the current keyboard input source is a keyboard layout, returns its ID. If the current keyboard input source is an input method or mode, returns the ID of the keyboard layout used by that input method or mode.
+ (NSString *)currentKeyboardLayoutInputSourceID
See summary
Version 1.2.0
use scripting additions
use framework "Foundation"
use script "BridgePlus"
load framework
set theResult to current application's SMSForder's currentKeyboardLayoutInputSourceID()
ASify from theResult
--> "com.apple.keylayout.Australian"
theResult as text
--> "com.apple.keylayout.Australian"