Mac OS Localization with scripts

Hi all,
Since 10.5 (and now 10.6), we try to apply localization scripts when we restore our ghost.
We have 4 locations to provide : France, UK, Netherlands and Belgium. Each have a different localization formats.
Our Ghost is a Mac OS 10.6.5 US located, and contain only one local admin (ladmin) session.
Localization customizing is done with scripts that contain some instructions using "languagesetup", "systemsetup" and "defaults write" on some files.
Files changing using "defaults write" are :
/Users/ladmin/Library/Preferences/.GlobalPreferences (to define admin's region, currency)
/Users/ladmin/Library/Preferences/ByHost/com.apple.HIToolbox (to define admin's input keyboard list)
/Library/Preferences/com.apple.HIToolbox (to define loginwindow's input keyboard list)
/var/tmp/com.apple.HIToolbox.loginwindow (to define loginwindow's input keyboard list)
/System/Library/User Template/$Language/Library/Preferences/.GlobalPreferences (to define template's region, currency)
/System/Library/User Template/$Language/Library/Preferences/ByHost/com.apple.HIToolbox (to define template's input keyboard list)
If local account's localizing, loginwindow keyboard input list, language setup work well, the .GlobalPreferences in the user template is ignored.
For exemple, for a french version (region : France, currency : Euro, Measurement units : Metric), when we login as a new user, we have :
Region : US (french)
Currency : US Dollar
Measurement units : Metric
Is there a link with the original language of the ghost ?
So, is there a deeper command of "languagesetup" to change System language ?
And sure, how to do that correctly ?

Are you using a WACOM tablet?
This is known behavior with tablets. It sucks but WACOM doesn't ever seem to fix it. Only solution I know is to disconnect the tablet.

Similar Messages

  • Problem Running App with Scripting Bridge on MAC OS X TIger

    Hi,
    I have an application which link with Scripting Bridge Frame work, use XCODE 3.0 and SDK 10.5. I use Scripting Bridge, to control some functionality of ITune from Objective-C. This Application run fine on Leopard and behave as expected. When I Run this application on Tiger this does not load.
    Considering that scripting Bridge was first released om Leopard.
    Can my Above Application Run on Tiger. If not how do I interface ITune from Objective-C, on both Tiger and Leopard? IS there update which suppose to fix this?
    Thanks
    Akhilesh

    webdevcda wrote:
    Considering that scripting Bridge was first released om Leopard.
    Can my Above Application Run on Tiger.
    No.
    If not how do I interface ITune from Objective-C, on both Tiger and Leopard? IS there update which suppose to fix this?
    There will be no update for old products like Tiger. What there is is all you will ever get. For Tiger, you will have to dig into sending Apple Events to iTunes manually. Or it might be easier to define your Apple Scripts as string resources in your application an execute them via a system() call.

  • [JS  CS3] Apply Italics with scripting

    There's a keyboard shortcut called "Apply Italics", which by default is [cmd]+[shift]+[i] on Mac, and  [ctrl]+[shift]+[i] on Windows. I use it often because it will change text to the correct italic style. For instance text with the style "85 Heavy" will change to "86 Heavy Italic" or "Semibold Display" to "Semibold Display Italic".
    Is there any way to access "Apply Italics" with scripting? The action is not available in any menu as far as I know.

    I made this script which will change all text with the character style "I" into proper italics, and creates corresponding character styles. "I" is just a character style with no properties. It gets applied when I import content into InDesign.
    I will end up with styles called "I 37 Thin Condensed Oblique", "I Italic Display" and so on according to the various fonts.
    function applyItalic(){ // Finds all text with Character Style "I" applied in the current document and changes it to proper italic character styles
         var mySelection = app.selection;
         var myDoc = app.activeDocument;
         var myRanges = myDoc.stories.everyItem().textStyleRanges.everyItem().getElements(); // gets every textStyleRange in the document;
         var italicStyle = myDoc.characterStyles.itemByName ("I"); // this character styles has no attributes;
         if (italicStyle == null){
              return;
         var myRange;
         var myFont;
         var newStyle;
         var newStyleName;
         var n;
         for (n=0; n<myRanges.length; n++){
              myRange = myRanges[n];
              if (myRange.appliedCharacterStyle==italicStyle){
                   app.select(myRange);
                   app.menuActions.itemByID(119611).invoke(); // apply italics - same as [cmd]+[shift]+[i]
                   myFont=myRange.appliedFont;
                   newStyleName="I "+myFont.fontStyleName;
                   newStyle=myDoc.characterStyles.itemByName(newStyleName); // if the style is created
                   if (newStyle==null){
                        newStyle=myDoc.characterStyles.add({name: newStyleName, fontStyle: myFont.fontStyleName}); // if the style does not exist yet
                   myRange.appliedCharacterStyle=newStyle;
         app.select(mySelection); // restores the original selection
    applyItalic();

  • I have a Mac Book Pro with a 320 gig hdd and my drive is corrupted and I can't engage it. So I would like to switch to a 1 terabyte drive can this be done?

    I have a Mac Book Pro with a 320hdd, 2.33 processor, 8 gigs of RAM and  OS X 10.9.4 .  My hdd crashed and I cannot access it so is it possible to install a 1 terabyte drive with the operating software already installed and also upgrade my RAM to 16 gigs?

    If I were you I'd install a small SSD as the boot drive from OWC:
    http://eshop.macsales.com/shop/SSD/OWC
    Then put a second large conventional drive either in the optical bay (Data Doubler) or in an external.
    You don't say which MBP you have: Size, CPU type.
    Also when you upgrade you could see if you can salvage your data from your old HD. Can you hear it spin up? If so Data Rescue IV.

  • HT3281 Podcasts from Current Tv, since three weeks prior to the Nov 2012 election have had a url problem and cannot be played on my mac mini 2011 with 10.8.2 and the latest Itunes? anyone know why ? I am in contact with Itunes now and they wanted screensh

    Podcasts from Current Tv, since three weeks prior to the Nov 2012 election have had a url problem and cannot be played on my mac mini 2011 with 10.8.2 and the latest Itunes? anyone know why> ? I am in contact with Itunes now and they wanted screenshots of the problem, I can get these current tv episodes with a vpn and my isp says they are not blocking them, but i was surprised that prior to the election they were blocked, ?
    I also can get them on my Android Samsung Galaxy note 2 with no problem but on the Macmini cannot>/? I Unsubscribed and subscribed many times but still no luck, any ideas? I am waiting for the senior advisor to get back to me on this issue. I am in THailand now where the problem is happening and as I said the ISP says they do not block any podcasts.I also do not want it on my iphone 5, so I have to wait and see why the mac mini is not getting it.

    I seem to have fixed it by putting <div  class="clearfloat"></div> after the navigation bar?

  • I'm trying to connect my 30" Cinema Display to my new Mac Pro along with a new Apple 23'" monitor.  The new Apple monitor is fine.  On the cinema monitor everything is blown up pretty large.  Any ideas on how to solve this?

    I'm trying to connect my 30" Cinema Display to my new Mac Pro along with a new Apple 23'" monitor.  The new Apple monitor is fine.  On the cinema monitor everything is blown up pretty large.  Any ideas on how to solve this?

    The 30" display needs a DUAL-LINK adapter.
    <http://store.apple.com/us/product/MB571Z/A/mini-displayport-to-dual-link-dvi-ada pter>

  • When I connect my Mac Mini 2011 with Lion to a TV via HDMI and an earphone cable is plugged in, it´s not possible to choose sound out via hdmi, as opposed to connection via minidisplay port. Anybody knows how to fix this?

    When I connect my Mac Mini 2011 with Lion to a TV via HDMI and an earphone cable is plugged in, it´s not possible to choose sound out via hdmi, as opposed to connection via the minidisplay port. Anybody knows how to fix this?

    Was just on the phone with Apple about this.
    The solution was as follows for me anyway...
    Go to your Finder
    Choose the Go Menu
    Choose Computer
    Choose your Macintosh Hard Drive
    Choose your "Library" Folder
    Choose the "Preferences" Folder
    There should be a folder called "Audio"
    Move that whole folder to the trash
    Empty the Trash
    Restart from the Apple Menu
    When you are back up and running;
         Choose System Preferences from the Apple Menu
         Choose Sound
          In the output tab you should now be able to make the HDMI "Sticky"
          Enjoy your sound over HDMI and no more dirty knees or broken backs unplugging the desktop speakers!
    Mac Mini 2011 2.5Ghz 8 GB of RAM - Planar 17" VGA via display port adapter and Samsung 26" LCD TV via HDMI

  • I recently upgraded to Firefox 13.0.1 and I'm operating a Mac Powerbook Pro with OS of 10.6.8 (Snow Leopard). Now I'm having intermittent problems with sending

    I recently upgraded to Firefox 13.0.1 and I’m operating a Mac Powerbook Pro with OS of 10.6.8 (Snow Leopard).
    Now I’m having intermittent problems with sending emails where Firefox freezes up. There is often a yellow warning above suggesting 32-bit mode, sometimes I can click to shift it that way, sometimes not.
    Anyone having these problems?
    Any suggestions?

    I recently upgraded to Firefox 13.0.1 and I’m operating a Mac Powerbook Pro with OS of 10.6.8 (Snow Leopard).
    Now I’m having intermittent problems with sending emails where Firefox freezes up. There is often a yellow warning above suggesting 32-bit mode, sometimes I can click to shift it that way, sometimes not.
    Anyone having these problems?
    Any suggestions?

  • HT204350 I have a Mac Book Pro with 10.6.8 and want to back up my files using a flash drive.  It says I did it but when I tried to check on my other Mac - an I Mac with 10.5.8, thedata does not seem to be there.  I cant see photos, etc.

    I have a Mac Book Pro with 10.6.8 and want to back up my files using a flash drive.  It says I did it but when I tried to check on my other Mac - an I Mac with 10.5.8, thedata does not seem to be there.  I cant see photos, etc..  It shows the backup as a file and shows various system info.  but there are no photos or other files shown.
    Thanks for any advise.
    Mike

    A PowerPC Mac, if that's what it is, won't be able to see an Intel Mac's formatted data.  Also ExFat formatting is not supported by 10.6.3 or earlier.  I would try viewing the backup on another Intel Mac with at least 10.6.4.  If it isn't there, then the backup never really took place.  I much profer a hard drive with Carbon Copy Cloner.

  • Hi, I got my Mac in 2009 with photoshop elements on it - it's recently been wiped, however before the process we put Photoshpp onto a hard drive, we then copied it back over and it no longer works, I'm getting error code 150:30 and I'm being asked for a p

    Hi, I got my Mac in 2009 with photoshop elements on it - it's recently been wiped, however before the process we put Photoshop onto a hard drive, we then copied it back over and it no longer works, I'm getting error code 150:30 and I'm being asked for a password... any ideas how to get it working again?

    You can never, never migrate an installed copy of PSE. It's just too complex and you can't get to all the bits and bobs.
    First you will have to download and run this:
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    which will not seem to do anything, but is necessary to break the links within PSE so that you can pitch the bits manually. Then you will have to go around, not only to applications, but also to your username>library>preferences and most importantly to the library at the top level of your hard drive>application support>adobe, and remove everything you can find. Spotlight will not help with this kind of search, so don't try that.
    Then you can install PSE from scratch.

  • How do I get the contacts from my mac to syn with icloud? I need to back up my phone and don't want to lose my contacts when I get a new phone.

    How do I get the contacts from my mac to sync with Icloud? I need to back up my phone since I will be receiving a new one tomorrow and the icloud contacts are not the same as the ones on my mac.  Help me

    OS X Lion. 10.7. Your profile says your running 10.6.8, which is Snow Leopard. You need 10.7 to use iCloud with your Mac.

  • How can I share my mac book pro with my mac pro.

    Hi,
    Anyone know how can I share my mac book pro with my mac pro. At the moment I am in NewZealand and my Mac Pro is in UK. I used to share my both computer in UK in same network but I don't know how can I share with different network. Please help me.

    You can't, currently only the iPhone has the personal hotspot function, it hasn't been enabled on the iPad - whether it will be possible in the future I don't know

  • How can i connect my mac book pro with retina display 2014 Mid to 5.1 channel? what is the connector am i to use? i wonder if anybody could probably let me know?

    how can i connect my mac book pro with retina display 2014 Mid to 5.1 channel? what is the connector am i to use? i wonder if anybody could probably let me know?

    https://www.youtube.com/watch?v=72l_FLsXNAg
    I use Hercules found here http://www.hercules.com/us/Sound-Cards/bdd/p/123/gamesurround-muse-xl-pocket-lt3 /
    also read this helpful thread Outputting 5.1 Channel Surround Sound from your Mac

  • Can I mirror my mac book pro with apple tv like i can do with my iPad 2?

    Cn I mirror my mac book pro with apple tv like i can do with my ipad2.

    Welcome to the Apple Community.
    No that's not possible

  • How do I network my Mac book pro with my Mac air?

    Hi - new at this Mac stuff: how do I network my Mac book pro with my Mac air? I am really looking to just share my photos from one to the other.

    Connect them both to the same router.
    They should show up in the left column of Finder under Shared.

Maybe you are looking for

  • Number of records in a database table

    Hi, Is there a way to find the no of records for database tables ? I have over 1000 tables and need to find the tables without any records. I have found an FM for this requirment but it isnt of much use as i dont have developer access to the system.

  • How do I detach all queries in Workbook under 04s BEX?

    BEx versions prior to 04s allows you to select Tools -> All Queries in the Workbook -> Detach now however within 04s, its seems this functionality has disappeared?

  • Mouse over multiple elements inside symbol

    Hi I need som help I have a symbol with 2 elements in it a background and a button, the botton only shows when hover the symbol, the problem is when I move the mouse over the button inside the symbol edge don't understand I am still hovering the symb

  • Error in XAI Receiver

    i created xai inbound service for add operation using bussiness service and i tested that inbound service with add xai submission its working sucesfully.After that i created xai recevier using FILESCANRCVR and started the Receiver,but i am not gettin

  • Error Installating Lync Client 2013 Basic 32-bit

    Hi, We're implementing Lync in our office and have already deployed a server and working with a few pilot users. one of the users, I've tried installing Lync Basic Client (32bit), always gives an error. During installation, it would stop in the middl