• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unicode Character in File Name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Unicode Character in File Name
      • From: Luther Fuller <email@hidden>
    • Re: Unicode Character in File Name
      • From: Luther Fuller <email@hidden>
References: 
 >Re: Unicode Character in File Name (From: CYB <email@hidden>)
 >Re: Unicode Character in File Name (From: Luther Fuller <email@hidden>)

  • Prev by Date: Rép: Unicode Character in File Name
  • Next by Date: Re: Unicode Character in File Name
  • Previous by thread: Re: Unicode Character in File Name
  • Next by thread: Re: Unicode Character in File Name
  • Index(es):
    • Date
    • Thread