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
|