I want to open some file:

source =
"tell application "SomeApp"
        open POSIX file "/Volumes/เม่น/some/file"  as alias
        activate
        end tell
"
NSAppleScript *aa = [ [ NSAppleScript alloc ] initWithSource: source ] ;
NSDictionary *errorInfo = nil ;
NSAppleEventDescriptor *awe = [ aa executeAndReturnError: &errorInfo ] ;

But I get:
 errorInfo: {
NSAppleScriptErrorBriefMessage = "Can't make file \"\U00a0\U2018 \U00df\U00c0\U00cf:Volumes:\U2021\U00a1\U00cb\U03c0:some:file\" into type alias."; NSAppleScriptErrorMessage = same as NSAppleScriptErrorBriefMessage NSAppleScriptErrorNumber = -1700; = "Can't make some data into the expected type."
    NSAppleScriptErrorRange = <00000000 00000000 >;

What is this gibberish?
Could it be that 17 years after the invention of Unicode AppleScript still has not seen the light?
Or what am I doing wrong?


Kind regards,

Gerriet.

P.S. เม่น = porcupine.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to