Hi,
I would like to know how to display Unicode text in the main window of an AS Studio program. In particular, I am interested to use something like the star symbol that iTunes uses for displaying user ratings for music tracks and perhaps, a few other nice symbols or Unicode text.
Could someone give me some lead?
I tried looking for help at ASStudio Lists but I could not find anything easy enough to follow.
TIA.
archseed
Hi All,
Sometimes, impatience engenders something positive if you’re just patient enough (is that an oxymoron?). Seriously, while I posted for help I was also doing some trial and error with some guidance I picked from the AppleScript Language Guide.
What I came up with seems so simple. It’s so simple I am not sure it will work as a general solution but it does the job for me…display the black star to indicate the music rating for my iTunes AS Studio script. This is how I got it.
set myData to «data utxt2605»
get myData as Unicode text
These two-line codes display the black star that I want. Now, if you like to display other Unicode text, all you need to do is get the code for it. In the case of black star, the code is 2605 which I got using the International character palette in the System Prefs.
The chevrons can be obtained by: option-backslash (for open chevron) and shift-option-backslash (for close chevron).
Just remember: this does not work unfailingly. I have noticed that some codes don’t display correctly when imbedded in AppleScript. Perhaps, different fonts behave differently. I have really very flimsy idea about this.
I hope the above helps those of you who might have a similar need as I had.
Good luck!
archseed