Previous Index Next

BridgePlus.framework, SMSForder Class Methods

Category

Keyboard input source methods

Method

currentKeyboardLayoutInputSourceID

Summary

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.

Signature

+ (NSString *)currentKeyboardLayoutInputSourceID

Parameters

 

Result

See summary

Availability

Version 1.2.0

Notes

 

Sample

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"


Click here to open script in a script editor