Thanks for the info. Yes I want to select them so they get
highlighted in the finder app. I have been looking at AppleEvents,
but Im lacking a starting point. The thing is, that Im new to both C+
+ and OS X programming (Im a Java coder). Why I choose C++ over
Object-C, is because I want to learn C++ and do programming on Linux
also.
It looks pretty good, and from that I think I will be able to do what
I want. Except one thing, I need a push in the right direction. I
lack a simple sample code where they make a simple C++ program that
uses AppleEvents, so I can see the whole code including includes and
what not. Could any of you guys maybe give a very small sample C++
program that cimpiles and run, just showing the include and firing a
simple AppleEvent (maybe open the finder or something), than I can
work from there. Its because Im new to C++ I find it hard to get
started, I think. So this would really help me a lot, or if not, then
maybe write some hints to what needs to be included in my C++ program
and what to call for a simple example :)
Thanks a lot guys
Best regards
Søren
Den 12/03/2007 kl. 20.31 skrev Steve Christensen:
On Mar 11, 2007, at 12:57 PM, Søren Neigaard wrote:
Anyways, I would like to make a small application I can activate
with some shortcut (I will figure that part out) and then in the
currently open finder window select some specific files.
Are you trying to select the files in the Finder in the sense that
they would become highlighted? Or are you saying that, for the
active Finder window you want to, say, build a list of files given
the parent directory represented by the Finder window?
Could you guys point me in the right direction to detecting the
current open finder window, and how I select files in this window?
If you want to find out the state of the Finder and/or make
changes, you'll need to send AppleEvents to the Finder. There is
really no other programmatic interface for interacting with the
Finder.
steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/soeren%
40neigaard.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden