Yes. The link work, getIconToFile work and getShellIcns work also.
I tried this
Code: Select all
on ShInPrev
put fld "fmyAS" into appleScriptInit
do appleScriptInit as "applescript"
end ShInPrev
The script open "Aperçu" but no image comeset theFile to "/Applications/ Jeux/Chess.app/Contents/Resources/chess.icns"
tell application "Preview"
open theFile
activate
end tell
All the best
Jean-Marc
P.S. I need times to think about the moon