• 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
localized string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

localized string


  • Subject: localized string
  • From: "koenig.yvan" <email@hidden>
  • Date: Wed, 26 Feb 2014 16:39:36 +0100

Hello

When I run this simple script :

tell application "TextEdit" to set Overwrite_loc to localized string "Overwrite"

I get two non-fatal errors :

tell application "TextEdit"
localized string "Overwrite"
--> error number -1708
«event ascrgdut»
--> error number -1708
localized string "Overwrite"
--> "Écraser"
end tell

To get rid of them I tested this alternate code :

set p2TextEdit to (path to applications folder as text) & "TextEdit.app"

set Overwrite_loc to localized string "Overwrite" in bundle file p2TextEdit

and got this clean events log (except the already discussed use of the "At Ease"  to prepend "applications folder").

tell current application
path to At Ease applications folder as text
--> "Macintosh HD:Applications:"
localized string "Overwrite" in bundle file "Macintosh HD:Applications:TextEdit.app"
--> "Écraser"
end tell

It works fine under Apple's Script Editor and under Smile.
May one of you test it under ScriptDebugger ?

Thanks in advance.

Yvan KOENIG (VALLAURIS, France) mercredi 26 février 2014 16:39:09









 _______________________________________________
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: localized string
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Excel scripts
  • Next by Date: Re: File URL to Alias?
  • Previous by thread: Mavericks 10.9.2 - Applescripting Gmail in Mail 7.2 (1874)
  • Next by thread: Re: localized string
  • Index(es):
    • Date
    • Thread