On my system, I compiled this code to translate the raw codes:
«class lwnd» -- not changed when compiling
«class posn» -- not changed when compiling
using terms from application "Finder"
«class lwnd» -- changed to "clipping window" when compiled
«class posn» -- changed to "position" when compiled
end using terms from
So, as you might guess, «class lwnd» is the raw code for Finder’s clipping window term and «class posn» is the raw code for Finder’s position term.
When I saw clipping window in Finder’s dictionary on my Tiger machine, I tried to use it (i.e. tell app “Finder” to get first clipping window), but it was never productive (error number -1728, “Finder got an error: Can’t get clipping window 1.”). Here are some demonstrative results from when I had the following windows open in Finder: one normal files/folders window, the Preferences window, one Get Info window, and one text clipping window.
tell application "Finder"
class of every window --> {preferences window, information window, Finder window, window} -- the last is the window for an open text clipping
get every clipping window --> {}
end tell
Based on that, I assumed that clipping window was not really useful on my machine (and other Tiger machines?), so I used plain window (though I would have used clipping window if it had worked on my machine!). My Finder did produce position properties for its window objects, but I stuck with bounds (one small advantage is that it is a standard term that is compilable without Finder’s terms).
Maybe to run it on Tiger, the code that uses the term clipping window must be compiled on Jaguar (since those were the two system on which Nigel indicated it works, even though it fails to work when compiled on two other Tiger systems). If so, I would be (very) mildly interested to know which raw code Jaguar uses for clipping window (I usually use AEPrint of from the List and Record Tools OSAX to indirectly dig up raw codes). Presumably Tiger’s Finder supports Jaguar’s raw code for clipping window, but Tiger’s dictionary specifies translation of clipping window into a different raw code (one that presumably Tiger and later releases recognize). I have heard of these changes for forward and backward compatibility before, but never run into them (probably because I usually only work with Tiger machines). Panther is also lurking in between Jaguar and Tiger, but it is probably not worth adding to the mix.
Model: iBook G4 933
AppleScript: 1.10.7
Browser: Safari Version 3.2.1 (4525.27.1)
Operating System: Mac OS X (10.4)