Kind of following on from this discussion, I guess, I appear to have some kind of namespace clash that I can’t resolve (my effort to put various terms in pipes, and to use ‘using terms from’ have not met with success).
This script works fine:
use scripting additions
# use framework "Foundation"
set _hd to path to startup disk as text
set anIcon to _hd & "System:Library:CoreServices:Finder.app:Contents:Resources:Finder.icns"
display dialog "hello finder" with icon file anIcon
However, uncomment the use framework "Foundation" line and I get an error: