Re: OSACompileExecute grief
Re: OSACompileExecute grief
- Subject: Re: OSACompileExecute grief
- From: Philip Aker <email@hidden>
- Date: Sat, 16 Nov 2002 19:21:55 -0800
On Saturday, Nov 16, 2002, at 18:50 US/Pacific, Mike Hore wrote:
What I'm doing is setting up a string with the script, then either
calling OSACompile and OSAExecute, or OSACompileExecute.
To identify the runtime error I put in a try block and an "on error"
handler to pick up the error number, and it's always -903. That means
"no port" ???
noPortErr = -903,
/* Unable to open port or bad portRefNum. If you're calling
AESend, this is because your application does not have
the isHighLevelEventAware bit set in your SIZE resource. */
Do you actually have this bit set in your application's resource file?
Before we get into the OSA stuff, are you actually able to send a
simple AppleEvent successfully? Like telling the Finder to empty the
trash.
Philip Aker
http://www.aker.ca
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.