Re: Unicode Character in File Name
Re: Unicode Character in File Name
- Subject: Re: Unicode Character in File Name
- From: "Mark J. Reed" <email@hidden>
- Date: Mon, 6 Apr 2009 11:06:47 -0400
Interestingly, it works with a literal number:
tell application "Finder" to character id 65
But not with a var, no matter how obtained:
set capA to 65
tell application "Finder" to character id capA
Which sure smells buglike.
On 4/6/09, Luther Fuller <email@hidden> wrote:
> While scripting this, I noticed something that may be of interest.
> The following script ought to write "A" to the console, but it errors:
>
> tell application "Finder"
> set charID to (id of "A") -- this works
> character id charID -- this errors
> end tell
> log the result
>
> Make a small change and now this works:
>
> tell application "Finder"
> set charID to (id of "A") -- this works
> tell me to character id charID -- this now works too
> end tell
> log the result
>
> "A" is now written to the console.
>
> It appears that the Finder can correctly convert character to id
> number, but cannot convert id number to character. But, which is the
> bug?
>
> _______________________________________________
> 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/archives/applescript-users
>
> This email sent to email@hidden
>
--
Sent from my mobile device
Mark J. Reed <email@hidden>
_______________________________________________
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/archives/applescript-users
This email sent to email@hidden