On Jul 23, 2009, at 12:21 PM, Laine Lee wrote:
Well ... sort of. I am running Leopard. But the technique also works in Tiger. What is different is the format of the preference file "com.apple.dock.plist". If you want to do this in Tiger, you will of course use Property List Editor to see the format of the file in Tiger and write code in response to what you find. But, the technique is the same ... and it works in Tiger, too!
In one of my applications, I have this code ...
if sysIsTiger then set newTileData to {|file-data|:newFileData, |file-label|:the result, |file-type|:2} else -- system is Leopard set newTileData to {arrangement:0, displayas:1, |file-data|:newFileData, |file-label|:the result, |file-type|:2, showas:3} end if
which accounts for the differing Tiger and Leopard formats.
|