Re: Changing creator/type in OS X
Re: Changing creator/type in OS X
- Subject: Re: Changing creator/type in OS X
- From: "Marc K. Myers" <email@hidden>
- Date: Mon, 10 Mar 2003 10:45:07 -0500
Date: Sun, 9 Mar 2003 22:06:40 -0500
From: Steve Roy <email@hidden>
Subject: Re: Changing creator/type in OS X
To: email@hidden
email@hidden (Marc K. Myers) wrote:
on modFile(theFile)
set theInfo to info for theFile
tell theInfo
[snip]
This handler is an awful amount of work for something that simple. Such
gymnastics was necessary a long time ago but ever since Mac OS 8 or
8.5, you
don't need the 'info for' osax anymore and can do it all through the
Finder as
was just posted by Michael Grant.
Steve
I used the osax because I thought it was proven to be more efficient
(i.e. faster) than making calls to the Finder application. Has that
changed?
The real problem with my handler was that I was calling System Events
to change the type and creator. Although this didn't throw any errors
it didn't change the file's properties. Calling the Finder to do the
same thing worked just fine. I had thought that the Finder simply
passed the call to System Events, so I assumed I was making things a
bit easier by eliminating the middle man. Bad assumption!
Marc [03/10/03 10:44:26 AM]
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.