Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript advice



On 7 Sep 2006, at 00:28, David Hoerl wrote:

Thank you very much for the excellent advice.

Primarily the need is for another app to issue a osascript command to "open this file in the current window" at a new pane in the bottom - it will never get more complicated than that.

If it's a single, fixed behaviour and isn't intended for end-users, I'd suggest doing the quickest and simplest thing possible. Use NSAppleEventManager to install a custom event handler that takes a file ref as its direct parameter and performs the whole operation. No sense in doing extra work to implement a full object model if nobody's ever going to see it. Wouldn't even bother listing it in the application's dictionary if it's just for private use.


Easy to forget that Apple events aren't just for human users. :)

HTH

has
--
http://freespace.virgin.net/hamish.sanderson/


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-implementors mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-implementors/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.