Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder Action the Cocoa Way





Uli Kusterer wrote:
Am 26.06.2006 um 01:05 schrieb John Stiles:
I will warn you that if the path can have non-ASCII characters in it—and this can be true even on American systems, if your users have creative hard drive names—your script won't run. AppleScript in general does an awful job with Unicode. This has bit me in the past.

If you want a long version of this problem and an explanation:

<http://www.zathras.de/angelweb/x2005-03-10b.htm>
Interesting read, and an important warning... but it actually didn't even mention the issue that I was referring to!
I was thinking more about folder or file names with 日本語 (Japanese) or other non-ASCII scripts in them.
There's no easy way to pass these paths into AppleScript at all; they choke the compiler. You have to convert them to some intermediate format that only uses ASCII.
(As I mentioned, file:// URLs are one way)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden


This email sent to email@hidden
References: 
 >Folder Action the Cocoa Way (From: Mark Butler <email@hidden>)
 >Re: Folder Action the Cocoa Way (From: Pablo Pons Bordes <email@hidden>)
 >Re: Folder Action the Cocoa Way (From: Mark Butler <email@hidden>)
 >Re: Folder Action the Cocoa Way (From: John Stiles <email@hidden>)
 >Re: Folder Action the Cocoa Way (From: Uli Kusterer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.