Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
AppleScript with Japanese filenames
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppleScript with Japanese filenames



Hi Members,

I have a sample JPG file with name 新しいノート.jpg  placed on Desktop. I want to send that file as a mail attachment to some body. For that i wrote the following script:

tell application "Mail"
set newMessage to make new outgoing message
tell newMessage
set visible to true
set sender to "apparao <email@hidden>"
tell content
make new attachment with properties {file name:"/Desktop/新しいノート.jpg"}
end tell
 set subject to "新しいノート.jpg"
end tell
activate
end tell

By using above script, mail app is activated and creating new compose window with out 新しいノート.jpg attachment. 

English version is working fine and not with Japanese file names.

Am i doing any thing wrong in Apple script (or) Is Apple script, not supports Japanese filenames?

Regards,
Apparao M.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.