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: filename conversion issue



I think the native API has been discouraging, if not quite deprecating, FSSpec stuff in favor of more modern stuff.

Would it work if you used a "file:" type URL and wrapped it with a DataRef?  Back in QuickTime 6.3 or so, Apple was making a fairly big deal out of improving what you could do with DataRefs in the native API.  I haven't tried it, but maybe...?

As for non-ASCII locales, you should have no difficulty assigning ASCII-unfriendly names to your test files right now, provided you turn on some non-ASCII input methods in the "International" system prefs.  Or just copy and paste something in Japanese, like "キックタムのファイル.mov" ("Kicktam'sFile.mov"... your fonts may vary), into the filename in the Finder.

--Chris


On Jul 20, 2005, at 10:44 AM, Bjorn Roche wrote:

For my code, I resorted to creating a temporary file with benign, ASCII-only name and moving it using java after the conversion is done. Although this requires a bit more cleanup code in the event that the user cancels or the operation failes, at least it works. Might this still fail in a non-ASCII local -- e.g. japan?

Anyway, I'd still be all ears if someone found a better way.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden

References: 
 >Re: filename conversion issue (From: Bjorn Roche <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.