Solved

How do I script FileMaker to change OS X keyboard layout?

Posted on 2011-09-28
3
566 Views
Last Modified: 2012-05-12
I am creating a database that i intend to use on Filemaker Go as well as FMPA to track and review foreign language vocabulary words. I need to write a script that will change the OS keyboard to Arabic (or any other non-Roman layout) upon entering certain fields and back to the default on entering other fields. I suspect Applescript could do this, but I don't know any Applescript. If there is a method in FMPA, that would be better.
0
Comment
Question by:MarkJulie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 25

Expert Comment

by:Will Loving
ID: 36815194
I used to do some Applescript many years ago and this was actually quite doable under OS 9 and earlier, but unfortunately all the System settings are now handled through System Preferences and System Preferences does not seem to offer the same degree of scripting control. I did some research and there are some complicated ways of manipulating the GUI using Applescript that might get you what you want in a very kludgy way, but I'm unable to find anything that would allow you to simply script a keyboard layout change directly. I also opened Script Editor and checked the Dictionary for System Preferences directly and couldn't see anything that would make it work...
0
 

Author Comment

by:MarkJulie
ID: 36815798
Thanks for the good reply with disappointing content. I will leave this open for the moment.
0
 
LVL 10

Accepted Solution

by:
webwyzsystems earned 500 total points
ID: 36816039
try the Apple Script command: Use Shell Script

Then, try executing something like this:

defaults write ~/Library/Preferences/ByHost/com.apple.HIToolbox.0017f2c31710 AppleCurrentKeyboardLayoutInputSourceID -string "com.apple.keylayout.US"
killall SystemUIServer

By flipping the "write" part to "read" you can glean more up to date and accurate values. Check the syntax manually in terminal first though. Probably best to play with read to get comfortable.

Use Shell Script does give you some more power to manipulate the local system.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

iCloud Drive was introduced after iOS 8 was launched last year. This drive is Apple’s online storage device that lets users sync their files and access them from all their Apple devices.   There is a lot of data that is not automatically backed up…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question