Yup!! Page 2-8 IM Processes
"Note that if you launch another application without terminating your
application the launched application does not actually begin executing
until you make a subsequent call to WaitNextEvent or EventAvail.....
So process will not be available until I have passed through
HandleEvents.. I guess.
How confident do you feel about :
long if Track.TrackFlag(TrackCount) = _True
AliasHandle = FN makeAbsoluteAliasHandle(Track.TrackName(TrackCount
),gWDRefNum%)
'Pinched from Staz again.. where would I be without theft.....
sendappleevent _coreEventType,_kAEOpenDocuments,[AliasHandle],fn
gethandlesize
(AliasHandle),ProcessName$
end if
I am assuming (always dangerous) that the FB3 "ProcessName$" is the
Process Serial Number as 2 MKI$ ??
Regards
Ian
Alain a dit ?
It seems to me that you send here the AppleEvent to your own
application, I don't think this is what you want to do, you
probably
want to retrieve the process info of the external application.
I would try to get the signature of the external app first then
search a match through the list of running process to finally get
the correct process name.
I don't know how exactly the RUN statement works, but perhaps a
laps
of time is necessary before requesting info for that process. I
hope
it makes sense.
--
Cheers
Alain