Hey everyone, something has been bugging me for a while now and I don’t know the reason for it. As far as I always thought, it is possible to use the following 3 wordings interchangeably: b[/b] tell object to set property to value b[/b] set property of object to value b[/b] set object’s property to value
Am I right when assuming those 3 are identical? If so, what’s the deal with this example?
tell application "Finder"
set SomeDir to "DirName"
set FinderWindow to Finder window SomeDir
set bgPic to document file "background.jpg" of folder SomeDir of startup disk
tell FinderWindow to set background picture of icon view options to bgPic --> doesn't work <--
set background picture of icon view options of FinderWindow to bgPic --> works fine <--
end tell
” Aesthir
Model: iMac 7,1
AppleScript: AppleScript 2.2.1
Browser: Firefox 11.0
Operating System: Mac OS X (10.7)