• 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: another beginner's question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: another beginner's question


  • Subject: Re: another beginner's question
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 11 Apr 2013 15:32:50 +0200

On 11/04/2013, at 1:14 PM, Marion Dickten <email@hidden> wrote:

I apologize for posting this kind of stuff but I haven't got anyone else I can ask.

This is good a place as any to ask.

I am currently working through Shane Stanley's book, and I am trying to put the cancel button into the app "Making progress" as is explained in chapter 13 of the book. I have wired up all the bindings and handlers correctly, but then I get an "unrecognized selector" error when I press the cancel button (it would be really helpful if the system told me *what* selector it doesn't recognize).

The offending method should be in the error.

The point is, for the life of me I cannot see how my code is any different from the code in chapter 13 of the book--- which works, of course. Can anybody see what I am missing? My code is:

I'm guessing -- I'm currently 10,000 miles from my computer -- but:

           tell current application's NSApp to set theEvent to nextEventMatchingMask_untilDate_inMode_dequeue(((current application's NSLeftMouseDownMask) as integer), missing value, current application's NSEventTrackingRunLoopMode, true)

There should probably be an underscore after dequeue.
 _______________________________________________
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: 
 >another beginner's question (From: Marion Dickten <email@hidden>)

  • Prev by Date: Re: GIF to PDF with Applescript ONLY
  • Next by Date: do shell script, curl and cookies
  • Previous by thread: Re: another beginner's question
  • Next by thread: do shell script, curl and cookies
  • Index(es):
    • Date
    • Thread