Image detection in Quark 4

: Does anyone know of a way to detect an image in a picture box in
: Quark 4? I wan’t to be able to auto import images, but not if
: one already exists in the picture box.
Something like this might work tell picture box i
tell image 1
set filename to file path
if filename = null then
–Nothing is in the box
end if
end tell --image 1
end tell --box 1

: Does anyone know of a way to detect an image in a picture box in
: Quark 4? I wan’t to be able to auto import images, but not if
: one already exists in the picture box.
this snippet will tell you if an image exists in a given picture box:
if bounds of image 1 of picture box 1 != {0,0,0,0} then…
or if no image exists:
if bounds of image 1 of picture box 1 = {0,0,0,0} then…
(always say ‘image 1’, e.g:
if bounds of image 1 of picture box 1 = {0,0,0,0} then…
if bounds of image 1 of picture box 2 = {0,0,0,0} then…
if bounds of image 1 of picture box 3 = {0,0,0,0} then…

etc…)
Dave L.