• 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
alias as string = as Unicode text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

alias as string = as Unicode text?


  • Subject: alias as string = as Unicode text?
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 17 May 2002 19:58:52 -0700

AS 1.6 and later:

Since alias format now works with file and folder names in Unicode, what
happens when you coerce an alias 'as string'? According to Script Debugger,
the result is "international text": is that as good as Unicode in this
context? I.e. , when you've got a folder as an alias in a variable
theFolder, is there any point to doing:

set folderPath to (theFolder as string) as Unicode text
set theItems to list folder theFolder -- result is list of Unicode
text in OS 10.1.x

repeat with i from 1 to (count theItems)
set itemName to item i of theItems
set theItem to alias (folderPath & itemName) as Unicode text
-- ... etc.

Will this always work? That is, will the first line actually give the
folderPath in its proper Unicode form, or does the 'as string' mangle
non-ASCII characters in the path, so that setting the result 'as Unicode
text' is pointless?


--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: alias as string = as Unicode text?
      • From: Christopher Nebel <email@hidden>
    • Re: alias as string = as Unicode text?
      • From: John W Baxter <email@hidden>
    • Re: alias as string = as Unicode text?
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Hello, I'm new here (now there's a classic)
  • Next by Date: Re: alias as string = as Unicode text?
  • Previous by thread: Re: osascript - path to me
  • Next by thread: Re: alias as string = as Unicode text?
  • Index(es):
    • Date
    • Thread