Re: Intel writes creator codes backwards!
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