If you do not want to do this by creating a Finder script, you can run the following shell command
qlmanage -p thefile
In Applescript you can do it like
do shell script "qlmanage -p " & "thepath/thefile"
Depending on what you do, this can be a lot easier. Especially if you only have a set of paths.
If you have an existing Applescript path, you can submit it as follows
set p to POSIX path of mypath do shell script "qlmanage -pr " & quoted form of p
Clark source share