Mailing Lists: Apple Mailing Lists

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

Speaking of packaging/installing Java apps...



We build a plug-in for Acrobat, written (partly) in Java.  The "traditional" MacOXS way to install applications does not quite match what we would need, in the sense that installing our plug-in requires that the plug-in be placed in a particular location within Acrobat's package.  I thought we could package our plug-in as an application, so the user can do the traditional thing and just drag-and-drop it from a .dmg to anywhere they want - and use it to start up Acrobat (with our plug-in installed).   So far so good...

The only problem is how to ensure that a copy our plug-in end up inside Acrobat.  If they start Acrobat by using our plugin/application (the one they dragged out of the .dmg), we could check whether a copy of us exists inside Acrobat, and if not put it there, before starting up Acrobat.  But if they drag-and-drop our plug-in/application anywhere, then start up Acrobat directly themselves, we would still want to be there.  But I don't know of a way to do that - and here's where I'm hoping for some help :-).  I can imagine I could hook up to something like "fslogger" (see here: http://www.kernelthread.com/software/fslogger/ ), so I could use it to notice that a copy of my plug-in application just got dragged onto the user's HD, and then copy it into the Acrobat package - except that would require a lot of extra work up-front.  A simple event handler for drag-and-drop out of my .dmg would also work - except I don't know of a way to do that, since none of my code has run, yet (and I don't know of Finder events I could hook up - are there?).

Can you guys see what I am trying to do?  Any suggestions for how to hook into MacOSX to get what I need?

Thank you!

Moises

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/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.