• 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: posix path of string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: posix path of string


  • Subject: Re: posix path of string
  • From: has <email@hidden>
  • Date: Sat, 25 Jun 2005 14:05:43 +0100

Dennis W. Manasco wrote:

>the 5th character has a ascii number of 0, meaning end of the string in C, I guess that is why you cannot copy the whole string but only pieces of the result between two 0
>
>That's a good call: Thanks.
>But it's even weirder than that:
>
>[...]
>
>it seems like it should do something more reasonable...at least suppress the non-printing characters on output...

You've got two unrelated bugs here. The first is that 'POSIX path of <record>' doesn't raise an error -1728 as it should. The second is that parts of Cocoa's ApplicationKit throw a wobbly when they encounter ASCII 0 characters, presumably 'cos they're making unsafe assumptions about them being string terminators when they're not. All you can do is file bug reports and hope Apple fix them (especially the second one, as it affects more than just AppleScripters).

has
--
http://freespace.virgin.net/hamish.sanderson/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: posix path of string
  • Next by Date: Set Focused of Static Text
  • Previous by thread: Re: posix path of string
  • Next by thread: root launching toast 6
  • Index(es):
    • Date
    • Thread