• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OSACompileExecute grief
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: OSACompileExecute grief
      • From: "Mike Hore" <email@hidden>
References: 
 >OSACompileExecute grief (From: Mike Hore <email@hidden>)

  • Prev by Date: Re: date "Jan" --> date object
  • Next by Date: Re: Entourage: Kill that Daemon! (Shell)
  • Previous by thread: OSACompileExecute grief
  • Next by thread: Re: OSACompileExecute grief
  • Index(es):
    • Date
    • Thread