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:
Error: File does not contain an icon.
That’s unfortunate because I’d like to both get the icon into Display Dialog and use Foundation later in my script.
Any suggestions for a workaround?