i have this problem with Adobe Illustrator CS6.
My script have to copy the name of document and insert it to the contents of existing text frame (in document the text frame has name “mustr”). Script is very simple, but does not work properly. It removes all diacritics from the name.
tell document 1
set thePath to file path as text
set saveTID to AppleScript's text item delimiters
set AppleScript's text item delimiters to {":"}
set zakazka to text item -1 of thePath
set AppleScript's text item delimiters to saveTID
set contents of text frame "mustr" to zakazka
end tell
I know why, but I don’t have a solution. The problem stems from how the HFS file system stores accented characters – it uses a custom decomposed form. However that’s being converted to an AppleScript string in an encoding format Illustrator doesn’t like.
but when i do the script and after execution i copy new contents of text frame in illustrator and paste it to (for example) TextEdit, it looks allright with diacritics. As i wrote in last post, when i get properties of text frame, it looks allright.
Maybe illustrator CS6 bug?
Can somebody check this in other AI version?
I am really confused of this, but thanks for helping.