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