• 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: "Dennis W. Manasco" <email@hidden>
  • Date: Sat, 25 Jun 2005 05:56:40 -0500

At 11:38 AM +0200 6/24/05, Le Stang Jean-Baptiste 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:

osascript -e 'POSIX path of {foo:"bar"}' > bob

If I open bob in qued (anyone remember qued?) with the right switches I get:

dle2 [00] [00] [00] furl


[00] [03] foo [00]TEXT [00] [00] [00] [03] bar [00]

Where the numbers in braces are ASCII codes.

(I'm not sure that this is entirely accurate: I couldn't copy it directly from qued and had to write it by hand.)

Perhaps it's just (as has wrote)

AppleScript spewing out the naked binary representation of an AERecord.

but it seems like it should do something more reasonable...at least suppress the non-printing characters on output...



-=-Dennis







.


_______________________________________________ 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
References: 
 >Re: posix path of string (From: Paul Berkowitz <email@hidden>)
 >Re: posix path of string (From: Le Stang Jean-Baptiste <email@hidden>)
 >Re: posix path of string (From: "Dennis W. Manasco" <email@hidden>)
 >Re: posix path of string (From: Le Stang Jean-Baptiste <email@hidden>)

  • Prev by Date: Re: Major Tiger AppleScript security hole?
  • Next by Date: Re: posix path of string
  • Previous by thread: Re: posix path of string
  • Next by thread: Re: posix path of string
  • Index(es):
    • Date
    • Thread