• 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: Database Events problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Database Events problem


  • Subject: Re: Database Events problem
  • From: Philip Aker <email@hidden>
  • Date: Thu, 26 Jun 2008 15:58:40 -0700

On 08-06-26, at 15:27, Erich Pearson wrote:

I'm building an ASstudio app. using database events to store my data, and have run into a problem when calling a "on selection changed" handler.
Im basically just trying to keep the data in sync with the selection of the table view and my text view.
When the handler is called I get a DBevents error.


What error?


In my opinion, you might be better off synchronizing with a data source.

Thanks for your reply. Im getting this error message:
Database Events got an error: Can’t get database "myDatabase" of database "myDatabase". (-1728)

errAENoSuchObject = -1728, /* e.g.,: specifier asked for the 3rd, but there are only 2. Basically, this indicates a run-time resolution error. */


So, to figure out the offender try some tries :-)

For instance here is most likely an error (AppleScript indices are 99.99% one-based so you probably want '… of window 1'.

try
set theSelectedRow to selected data row of table view 1 of scroll view 1 of split view 1 of window 0
on error errs number errn
log errs & space & "ERROR: " & errn as text
end try



Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Database Events problem (From: Erich Pearson <email@hidden>)
 >Re: Database Events problem (From: Philip Aker <email@hidden>)
 >Re: Database Events problem (From: Erich Pearson <email@hidden>)

  • Prev by Date: Re: PhotoShop Spot Channels
  • Next by Date: RE: PhotoShop Spot Channels
  • Previous by thread: Re: Database Events problem
  • Next by thread: Re: Database Events problem
  • Index(es):
    • Date
    • Thread