Re: Intel writes creator codes backwards!
Re: Intel writes creator codes backwards!
- Subject: Re: Intel writes creator codes backwards!
- From: Doug McNutt <email@hidden>
- Date: Tue, 17 Oct 2006 15:53:53 -0600
At 21:39 +0200 10/17/06, Harald E Brandt wrote:
>Despite I think I have followed the list pretty well, I have not seen anyone report on the fact that System Events writes both creator codes and files types BACKWARDS on Intel-based Macs!?
>
>tell application "System Events"
> set file type of file afilePath to "TEXT"
> set creator type of file afilePath to "PTAa"
>end tell
>
>Results in:
>Creator: 'aATP'
>Type: 'TXET'
Byte swapping with 32 bit words can go two additional ways besides the big and little endian for 16 bit words of old.
ABCD -> BADC in Sun UNIX
ABCD -> DCBA in Microsoft Windoze.
I have been wondering just how long it would take before it becomes a problem.
--
--> Halloween == Oct 31 == Dec 25 == Christmas <--
_______________________________________________
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