• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: invoking quicklook via code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: invoking quicklook via code


  • Subject: Re: invoking quicklook via code
  • From: has <email@hidden>
  • Date: Thu, 5 Jun 2008 00:59:05 +0100


Nick Zitzmann wrote:

Thanks for the replies guys. What I would like to do, may be a lot
simpler than what i may have explained. I just want my app to launch
the quicktime movie, in what looks like exactly like the finder
quicklook window - in fact if its possible to even somehow do it
with an applescript or something - i.e. just tell finder to launch
it! Is that possible?


I'm pretty sure that can't be done with AppleScript unless
accessibility is turned on.


GUI Scripting is crude and brittle and really a last resort when all else fails. Unfortunately, there's nothing in Finder's scripting API for invoking quicklook (its 'open' command just opens files in the default editor, equivalent to double-clicking them), so it may be the OP's only hope if they _really_ must have it. Though FWIW, GUI Scripting is just a wrapper around OS X's existing accessibility APIs, so going through AppleScript isn't really necessary at all.

It may be easier to just use QTMovieView.

Yeah, I think this would be the simplest and most reliable solution. (And by all means file feature requests on Finder for 10.6; its scripting interface is lagging its graphical one a bit these days.)


HTH

has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Bindings Cocoa and new Thread (Spinning Beach Ball an new Thread)
  • Next by Date: Re: RESTful API's - Easy way to interact?
  • Previous by thread: Re: invoking quicklook via code
  • Next by thread: CALayer subclass question
  • Index(es):
    • Date
    • Thread