On 2009-07-01, at 17:15:03, Paul Berkowitz wrote:
That's not System Events vs. Finder.
It's because your script *tells* the object whereas the first script just
tells the application and tries to set a list or properties 'of' the object.
That's how it works, and always has. You can only set multiple properties -
a list of properties - of an object to a list of values if you tell the
object directly. You can *get* values of a list of properties either way.
At least, that has been my experience over several years. I have just come
upon replies from others that indicate I may have been leading a sheltered
life, and that this behavior may differ from application to application. if
that is indeed the case, I defer to others' greater knowledge.
Could be, but since the Finder is traditionally and overwhelmingly the application in question:
set f to ((path to desktop folder as text) & "test.txt") as alias
tell application "Finder" to tell (document file f)
set {file type, creator type} to {"DISH", "DHAT"}
end tell
info for f
(10.5.7/Intel)
What is bad here is that between System Events, info for, and Finder, there are different non-transferrable terms for 'creator type', when in fact they all refer to the same 32 bits of the low level FSCatalogInfo.finderInfo.