• 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
Accessing Localized File Menu String
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accessing Localized File Menu String


  • Subject: Accessing Localized File Menu String
  • From: Ian was here <email@hidden>
  • Date: Thu, 9 Jul 2009 12:51:56 -0700 (PDT)

I have an AppleScript that clicks a menu item under Keynote's file menu. This works great. The problem is when I localize it.

The working version of the script is as follows:

if (exists menu item "Export…" of menu 1 of menu bar item "File" of menu bar 1) then click menu item "Export…" of menu 1 of menu bar item "File" of menu bar 1


The localized version is this:

set localizedFileString to localized string "File"
set localizedExportString to localized string "Export…"

if (exists menu item localizedExportString of menu 1 of menu bar item localizedFileString of menu bar 1) then click menu item localizedFileString of menu 1 of menu bar item localizedFileString of menu bar 1


"Export" is in Keynote's dictionary and will translate to German, but "File" is not in Keynote's dictionary and won't translate. Does file belong to the Finder? What I want to know is how to translate "File" so that I can use it in my localized AppleScript.

Thank you.




 _______________________________________________
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: Accessing Localized File Menu String
      • From: Chris Page <email@hidden>
  • Prev by Date: RE: Vertical Bars disappear for lowercase variable names?
  • Next by Date: Re: still having trouble with SOAP
  • Previous by thread: Re: Reporting bugs (was do script when scripting terminal)
  • Next by thread: Re: Accessing Localized File Menu String
  • Index(es):
    • Date
    • Thread