quicklook in 10.6

the following command:

on QuickLook(thisFile)
	do shell script "qlmanage -p " & quoted form of thisFile & " >& /dev/null &"
end QuickLook

worked perfectly in 10.5. However, in 10.6, the window seems to display “[DEBUG]” in the title. Any idea how to remove this (or alternatively, to QuickLook the file directly from applescript)?

I cannot help you with the problem you are facing because I am using 10.5.

I dont think you will like it. :slight_smile:


on thequicklook(thefile)
	tell application "Finder"
		activate
		select thefile
		tell application "System Events" to key code 49
	end tell
end thequicklook

The only advantage it has is that you can use the keyboard (space key) to close it and perform other functions associated with Quicklook.

Well that approach is not ideal, as you say, but at least it’s workable. Thanks.