• 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: Intel writes creator codes backwards!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Intel writes creator codes backwards!


  • Subject: Re: Intel writes creator codes backwards!
  • From: Harald E Brandt <email@hidden>
  • Date: Thu, 19 Oct 2006 22:39:51 +0200

On 2006-10-19, at 14.08, has wrote:

Harald E Brandt wrote:

The reason I use System Events rather than Finder is because I have trusted it more!

I'd suggest using a workaround for now - e.g. since Standard Additions works ok, use that to check the newly set file type, and if it's backwards then set it again with a deliberately reversed code so it comes out right:

set myFile to alias "path:to:file"
tell application "System Events" to set file type of myFile to "abcd"
if file type of (info for myFile) is "dcba" then
tell application "System Events" to set file type of myFile to "dcba"
end if


Fun idea! It's ugly, but also ugly fingers can do useful good....

(FYI: In Jaguar, one MUST use Finder to set codes, since System Events refuses to do that, but without signaling an error! Perhaps also that is an "unknown" bug in System Events, since I never bothered to report it, but on the other hand: who cares today? (Except people like me who want to make things backwards compatible with Jaguar.))



______heb____________________________
Harald E Brandt http://bragit.com
 _______________________________________________
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

  • Follow-Ups:
    • Re: Intel writes creator codes backwards!
      • From: Doug McNutt <email@hidden>
References: 
 >Re: Intel writes creator codes backwards! (From: has <email@hidden>)

  • Prev by Date: Claudio Braxmaier ist bis 25.10.2006 nicht da
  • Next by Date: Re: Intel writes creator codes backwards!
  • Previous by thread: Re: Intel writes creator codes backwards!
  • Next by thread: Re: Intel writes creator codes backwards!
  • Index(es):
    • Date
    • Thread