Problems with "open"

Hello,

consider the following snippet:

tell Application “GraphicConverter”
open myfile

end tell

What happens is that “myfile” will be opened by Preview instead of GraphicConverter. Thus, how can I ensure that the “open” of GraphicConverter is used and nothing else?

Regards,
Christoph Gartmann

You don’t tell us how myFile is defined, but this works for me:

set myFile to alias ((path to pictures folder as text) & "ACB-06.jpg")
tell application "GraphicConverter" to open myFile