• 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: NSAppleScript shies away from porcupines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAppleScript shies away from porcupines


  • Subject: Re: NSAppleScript shies away from porcupines
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Wed, 27 Aug 2008 03:54:47 +0700


On 27 Aug 2008, at 02:09, has wrote:

Gerriet M. Denkmann wrote:

When I try in Script Editor:

set macpath to POSIX file "/Volumes/เม่น/Users" as Unicode text

and do "Compile", then this gets transformed into:

set macpath to file " ‘ßÀÏ:Volumes:‡¡Ëπ:Users" as Unicode text

Sounds like you're on 10.4 or earlier.
Correct. I should have stated this in my posting.

AppleScript only supports Unicode source code in 10.5+; previously it used the host system's primary encoding, which is why your non- MacRoman(?) characters are getting mangled. If you must use AppleScript for some reason, either write your unicode string literals using raw «data utxt...» format, or pass in unicode strings as parameters to an Apple event constructed via NSAppleEventDescriptor.

I might try this. But it is good to know that AppleScript cannot be used on 10.4.

Kind regards,

Gerriet.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSAppleScript shies away from porcupines
      • From: Jason Coco <email@hidden>
References: 
 >Re: NSAppleScript shies away from porcupines (From: has <email@hidden>)

  • Prev by Date: Re: [ANNOUNCE] SQLite Persisted Objects for Cocoa
  • Next by Date: Re: NSAppleScript shies away from porcupines
  • Previous by thread: Re: NSAppleScript shies away from porcupines
  • Next by thread: Re: NSAppleScript shies away from porcupines
  • Index(es):
    • Date
    • Thread