Solved

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

Posted on 2011-09-28
3
564 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

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
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 …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 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