Simple image display technique?

I am looking for a simple way for my script to display a jpg at a particular position on the screen. That is all I really need it to do. I figured Image Events would be perfect but I was surprised to learn it does not display images. I was hoping to avoid opening a complex app just to display one image.

Does anyone have any suggestions? Is the a shell script command that might help me?

Thanks in advance.

JT

Hi,

try to play around with “qlmanage” …

set myFolder to choose folder
set fNames to list folder myFolder without invisibles

set fStrings to ""

repeat with i from 1 to count of fNames
	set fName to item i of fNames
	set posixPath to POSIX path of ((myFolder as text) & fName)
	set fStrings to fStrings & space & quoted form of posixPath
end repeat

do shell script "qlmanage -p " & fStrings & " >& /dev/null"

http://www.manpagez.com/man/1/qlmanage/

Hope it’ll be of some help …

Thanks, that is very interesting and I had no idea it even existed. I will explore it.

Can you please tell me what the end of the shell script line does? " >& /dev/null" I am new to shell script commands and was curious as to why you were appending that to the command.

Thanks again for the suggestion.

JT

Hi,

it’s to redrirect any erroroutput of the shellCommand …

This should be a better explanation :wink: :

qlmanage is the engine behind the QuickView-option of OSX

Have a nice day :slight_smile: