applescript - shell and Quick Look
BNig
niggemann at uni-wh.de
Fri May 1 06:30:19 EDT 2009
Jim,
thanks for this.
I tried the -t option. Then it shows in a white window instead of the black
one. Since it is a thumb you can not scroll through multipage pdfs for
example. It shows only the first page. For images this is quite ok. One can
get the up to the original size by fiddling with the parameters.
here is a script with some variations of the commands
------------------------
on mouseUp
answer file "please choose ..."
if it is empty then exit mouseUp
put it into theFile
put apostrophe (theFile) into theFile
put "qlmanage -t " & "-s 900 " & theFile into tcmd -- apparently it sets
it to max orig size, white window
-- put "qlmanage -t " & "-f 5 " & theFile into tcmd ---- apparently it
sets it to max orig size, white window
-- put "qlmanage -p " & theFile into tcmd -- shows it in a black window
get shell (tCmd)
if the result is not empty then put the result
end mouseUp
function apostrophe what
return "'" & what & "'"
end apostrophe
-----------------------------
regards
Bernd
Jim Sims wrote:
>
>
> On May 1, 2009, at 9:28 AM, Terry Judd wrote:
>
>> Ooh - and PowerPoint presentations as well!
>
> Yes, useful.
>
>
> Maybe the -t option is useful, no idea about these others however. I'm
> a little timid mucking about in terminal.
>
>
> The man page has:
>
> NAME
> qlmanage -- Quick Look Server debug and management tool
>
> SYNOPSIS
> qlmanage -r
>
> qlmanage -m
>
> qlmanage -t [-s size] [-f factor] [-c contentTypeUTI [-g
> generator]]
> [file ...]
>
> qlmanage -p [-c contentTypeUTI [-g generator]] [file ...]
>
> qlmanage -h
>
> DESCRIPTION
> qlmanage allows you to test your Quick Look generators and
> manage Quick
> Look Server.
>
> The following usages are available:
>
> 1. qlmanage -r resets Quick Look Server and all Quick Look
> client's
> generator cache.
>
> 2. qlmanage -m gets all sort of information on Quick Look
> server
> including the list of detected generators.
>
> 3. qlmanage -t displays the Quick Look generated
> thumbnails (if
> available) for the specified files. This executes the
> thumbnail
> generator.
>
> 4. qlmanage -p displays the Quick Look generated previews
> for the
> specified files.
>
> 5. qlmanage -h displays a summary of this page.
>
>
> sims
>
> sims at ezpzapps.com
> Skype: sims.jim
> iChat: techietours
> ______________________
> Opportunity by Design
>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
--
View this message in context: http://www.nabble.com/applescript---shell-and-Quick-Look-tp23328851p23331028.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode
mailing list