site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Thunderbird 2.0.0.12 (Windows/20080213) Hi, there, I have a question about the new address book application in leopard. An applescript like this works fine on tiger and exports a readable text file in UTF-8. tell application \"Finder\" set theFolder to folder \"TemporaryItems\" of folder \"Caches\" of folder \"Library\" of home end tell tell application \"Address Book\" set theVcard to (vcard of my card) as Unicode text set theFile to (theFolder as text) & \"myAddressBookCard.vcf\" set theFileHandle to open for access theFile with write permission write (ASCII character of 254) to theFileHandle write (ASCII character of 255) to theFileHandle write theVcard to theFileHandle close access theFileHandle end tell But on leopard, it created a UTF-16 file with no line break. Why it's so different? Any parameter available to the addressbook application can force it to create the same file as that on tiger? Thanks. Koifans _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Calvin Liu