Implementing the Mac "Quick Look" type of window

Peter Haworth pete at mollysrevenge.com
Sat Apr 10 03:08:30 EDT 2010


Thanks, this sounds perfect.  I am on 10.5 so will try this out.

Pete Haworth

-------------- next part --------------






http://www.mollysrevenge.com
http://www.sonicbids.com/MollysRevenge
http://www.myspace.com/mollysrevengeband








On Apr 9, 2010, at 11:55 PM, use-revolution-request at lists.runrev.com  
wrote:

>>
>> Not sure the correct term for this but I'm looking for a way to to
>> implement windows that look like the "Quick Look" windows on a Mac.
>> They "explode" out from the document icon popup menu that you select
>> the Quick Look function  from.  They have a semi-transparent border
>> around the document they display and a close button at the top left
>> and a vertical scroll bar.
>>
>> I thought maybe the opaque property of a card might be a starting
>> point but it doesn't seem to affect the appearance of the card at
>> all.  Also tried playing around with the various options of the
>> Blending Properties but they seem to affect the appearance of objects
>> on the card rather than the card itself.
>>
>> Thanks for any pointers as to how to do this,
>
> Actually, Pete, if you are on a Mac, 10.5 or higher, you can can  
> access the QuickLook capability directly. I wrote this script after  
> a discussion on this list a few months back. Thanks to Bernd  
> Niggeman and Jim Sims for the ideas:
>
> 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  
> sets it to max orig size, white window
>  -- put "qlmanage -t " & "-f 5 " & theFile into tcmd ---- apparently  
> 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,
>
> Devin
>
> Devin Asay
> Humanities Technology and Research Support Center
> Brigham Young University



More information about the use-livecode mailing list