• 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: has <email@hidden>
  • Date: Thu, 19 Oct 2006 13:08:50 +0100

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


HTH

has
--
http://freespace.virgin.net/hamish.sanderson/
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org


_______________________________________________ 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: Harald E Brandt <email@hidden>
  • Prev by Date: Blast from the past: string objects and whose lists
  • Next by Date: Re: Blast from the past: string objects and whose lists
  • Previous by thread: Re: Intel writes creator codes backwards!
  • Next by thread: Re: Intel writes creator codes backwards!
  • Index(es):
    • Date
    • Thread