• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Plug-ins
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plug-ins


  • Subject: Re: Plug-ins
  • From: Yvan KOENIG <email@hidden>
  • Date: Thu, 17 Dec 2009 22:14:30 +0100


Le 17 déc. 2009 à 21:50, Carlos Ysunza a écrit :


In my case and I think for many of us that live in a non English country, I prefer  to install all my applications in English or multilanguage, because I found the Spanish localization is made it for people of Spain, and their translation of many technical terms is a little bit annoying and sometimes ridiculous, not to mention the manuals and documentation, in Mexico the tendency is to use the English technical words in it’s original language.
But sometimes we need to work with somebody that don’t speak English so we need the ability of enable disable this feature, and of course if is possible to do that using AppleScript would be nice

Here is the script which I use for iWork's components.
It would be easy to edit it for other apps and languages.

--[SCRIPT choose iWork's language]
(*
Save this script as an application bundle.
Store it in the Applications folder
You may install it in the Dock

If you run it, it will ask which app it must open
then which language must be used.
It will move two resources folders accordingly then will run the program in the wanted language.

As is, it assumes that the program is not already open in an other language.

Yvan KOENIG (Vallauris, FRANCE)
9 décembre 2008
*)

set p2a to path to applications folder as text
set comment to display dialog "Choose an application to open." buttons {"Keynote", "Numbers", "Pages"} default button "Pages"

set appName to button returned of comment

set p2a to p2a & appName & ".app:contents:"
set comment to display dialog "Use " & appName & " in which language ?" buttons {"Cancel", "French", "English"} default button "English"

set comment to button returned of comment
if comment is "Cancel" then error -128
if comment is "English" then
tell application "Finder"
if exists folder (p2a & "Resources:French.lproj") then move folder (p2a & "Resources:French.lproj") to folder (p2a & "Resources Disabled:")
if exists folder (p2a & "Resources Disabled:English.lproj") then move folder (p2a & "Resources Disabled:English.lproj") to folder (p2a & "Resources:")
end tell
else
tell application "Finder"
if exists folder (p2a & "Resources:English.lproj") then move folder (p2a & "Resources:English.lproj") to folder (p2a & "Resources Disabled:")
if exists folder (p2a & "Resources Disabled:French.lproj") then move folder (p2a & "Resources Disabled:French.lproj") to folder (p2a & "Resources:")
end tell
end if

tell application appName to activate

--[/SCRIPT]

Yvan KOENIG (VALLAURIS, France) jeudi 17 décembre 2009 22:14:03


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Plug-ins
      • From: Carlos Ysunza <email@hidden>
References: 
 >Re: Plug-ins (From: Carlos Ysunza <email@hidden>)

  • Prev by Date: Re: Plug-ins
  • Next by Date: Re: Plug-ins
  • Previous by thread: Re: Plug-ins
  • Next by thread: Re: Plug-ins
  • Index(es):
    • Date
    • Thread