• 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
Question concerning applescript subclasses and alerts as sheets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question concerning applescript subclasses and alerts as sheets


  • Subject: Question concerning applescript subclasses and alerts as sheets
  • From: Frederik Vande Rieviere <email@hidden>
  • Date: Tue, 14 Jan 2014 14:34:10 +0100
  • Acceptlanguage: nl-NL, nl-BE
  • Thread-topic: Question concerning applescript subclasses and alerts as sheets

Dear List,

 

Is there a way to trigger sheet alerts from another class than the one that contained the original trigger? I don’t seem to succeed in this.

 

I have the following :

 

appdelegate.applescript

 

script Appdelegate

 

                property parent “NSObject”

 

               on pushme_(sender) – bound to button in main UI

                                tell current application’s Dialog to showSheet_(“My Message”)

                end pushme_

 

end script

 

dialog.applescript

 

script Dialog

 

                property parent “NSObject”

                property mainWindow : missing value – bound to mainWindow with an NSObject

 

on showSheet_(theMessage)

// The code for making a sheet alert, using Myriad Helpers for this

end showSheet_

 

end script

 

This works perfectly with a pushme_ function in Dialog, but I get a standard modal dialog when I use the one Appdelegate (?)

 

Thanks,

 

Fred.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Question concerning applescript subclasses and alerts as sheets
      • From: Shane Stanley <email@hidden>
  • Next by Date: Re: Question concerning applescript subclasses and alerts as sheets
  • Next by thread: Re: Question concerning applescript subclasses and alerts as sheets
  • Index(es):
    • Date
    • Thread