Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / October 2004



Tip: Looking for answers? Try searching our database.

PowerPlant AppletScript event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tommaso - 28 Oct 2004 16:13 GMT
I try to do a PowerPlant Application.
I overwrite the LApplication.HandleAppleEvent method, but, when i send
e Script to my app a recive only a "ae_OpenApp" event and never
"ae_SetData".

This is my script

tell application "myApp"
 set Par to "123"
end tell

Thanks in advance.

Tommaso.
David Phillip Oster - 28 Oct 2004 16:41 GMT
> I try to do a PowerPlant Application.
> I overwrite the LApplication.HandleAppleEvent method, but, when i send
[quoted text clipped - 6 lines]
>   set Par to "123"
> end tell

Have you added the file "PP AppleEvents.rsrc" (in "PowerPlant
Resources") to your project? (The 'aedt' resources map the 2 4-byte
codes from the O.S. into a single 4-byte code like: ae_SetData)

If you are using a .plc file, have you added the line:

     key "NSAppleScriptEnabled" value boolean true

to it?
Tommaso - 29 Oct 2004 09:12 GMT
> > I try to do a PowerPlant Application.
> > I overwrite the LApplication.HandleAppleEvent method, but, when i send
[quoted text clipped - 16 lines]
>
> to it?

Yes I have alredy included the file "PP AppleEvents.rsrc" and in it
there are all the definitions of the standard events like set,
get.....etc.
I am using CodeWarrior V9 on MAC OSX and am developing a PowerPlant
Classic Basic application.

Please Help Me!!!

Thanks in advance.

Tommaso
David Phillip Oster - 29 Oct 2004 10:33 GMT
> Yes I have alredy included the file "PP AppleEvents.rsrc" and in it
> there are all the definitions of the standard events like set,
> get.....etc.
> I am using CodeWarrior V9 on MAC OSX and am developing a PowerPlant
> Classic Basic application.

Put a breakpoint inside the function:

LModelDirector::HandleAppleEvent(), and trace through what happens.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.