Show Selected images full screen without showing desktop ever

I am working on a project where I will want to display images full screen at depending on certain conditions. I can do the underlying script work, but I am having a hard time finding an application or method to show the images without briefly flashing the desktop in between.

For example, I took pieces from other’s scripts and made a script to use quick look to show images, but you see the Desktop between each one. See below.

Since I do not know the order of images, it makes it also not ideal to use an app like GraphicConverter’s slideshow feature. If you script many individual slideshows, it will also will briefly show the desktop in between slideshows.

I need a basic app that shows an image full screen until it is told via script to show a different image.

As always, any help wold be appreciated.

set thefolder to choose folder

tell application "Finder"
	set all_files to (every file in thefolder)
	if window 1 exists then
		set the target of window 1 to thefolder
		reveal the_folder
	end if
	--Send the Esc key to exit the previous quick-look, if there is one
	tell application "System Events"
		key code 53
	end tell
	repeat with ff in all_files
		delay (1)
		--select the new file
		select ff as alias
		activate window 1
		--Activate full screen quick look on the selected file
		tell application "System Events"
			keystroke "y" using {command down, option down}
		end tell
	end repeat
end tell

I would make an ASOC project out of this. What you really want is a way to make a window that has the image you want in it. I know it’s a lot more work than a simple script, but you positively can do what you want in ASOC. You’ll need to make a window, an ImageWell object. Your app delegate can then set the image in the image well when ever you need to. Plus the window can cover the entire screen size and have a white background so nothing will show under it even while changing pix. This will also require you to get the bounds of the screen, and at the start of the app it will make the bounds of the window the same as the screen.
There is also a little app called “just looking” which is a super simple image viewer with slideshow function. Not Applescriptable though.


Went and bought the ‘AppleScriptObjC Explored’ ebook - is that the best way to start figuring out ASOC?