• 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: Calling a handler from another script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling a handler from another script


  • Subject: Re: Calling a handler from another script
  • From: Brian Christmas <email@hidden>
  • Date: Sun, 27 Mar 2016 17:47:19 +1100

Shane, another BIG thank you! So simple, and I completely overlooked it. Couldn’t see the wood for the trees.

Now, if you don’t mind, another question.

I’m passing my new script object’s only handler a list of variables, the first of which is bound to a scroll field; theNewColorsScrollView in my example.

I don’t know yet if it will work, but as this new script object could be called from any amount of scripts existing in a project, should I include the actual calling script (by name or by binding), in the list of variables? Or, is the mere fact I’m (hopefully) using a variable that’s a binding to any particular scroll field enough for the Attributed text drawing handler ‘writeEachMessage_’ to ‘know’ what script it is being called from, and to write to the correct scroll field?

I’m asking because I’m not yet even sure I can pass a variable that’s a bound property between script handlers.

attributedTextDrawerCaller's writeEachMessage_(theNewColorsScrollView, newColorText, (theFontInUse as text), textLinePlacement, textLineReplace, textLineBold, textLineItalic, textLineUnderlined, textLineOutlined, textLineFontSize, textLineColor, textLineDwell as real, textLineFlashDwell as real, textLineFlashTimes as real, textLineFlashColor, textWordString, textWordBold, textWordItalic, textWordUnderlined, textWordOutlined, textWordDwell as real, textWordFlashDwell as real, textWordFlashTimes as real, textWordFlashColor, maximumLineCount, true)

property theTextFieldReference : missing value


        on writeEachMessage_(theTextFieldReference, theText, textFont, textPlacement, replace, textBold, textItalic, textUnderline, textOutline, textSize, textColor, textDwell, lineFlashDwell, lineFlash, lineFlashColor, wordFlashString, wordsBold, wordsItalic, wordsUnderline, wordsOutline, wordDwell, wordFlashDwell, wordFlashTimes, wordFlashColor, maximumLines, drawOriginalTextLine)


Regards

Santa



On 27 Mar 2016, at 5:06 PM, Shane Stanley <email@hidden> wrote:

On 27 Mar 2016, at 5:00 PM, Brian Christmas <email@hidden> wrote:

 I assume you’re suggesting the problem could lie at the wording of the code in my sub-script.

Please, it's not a "sub-script". It's a class file.

script AppDelegate

The name of the class is the name you give your script object. That line should say "script AttributedTextDrawer".

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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: Calling a handler from another script
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Calling a handler from another script (From: Brian Christmas <email@hidden>)
 >Re: Calling a handler from another script (From: Shane Stanley <email@hidden>)
 >Re: Calling a handler from another script (From: Brian Christmas <email@hidden>)
 >Re: Calling a handler from another script (From: Shane Stanley <email@hidden>)
 >Re: Calling a handler from another script (From: Shane Stanley <email@hidden>)
 >Re: Calling a handler from another script (From: Brian Christmas <email@hidden>)
 >Re: Calling a handler from another script (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Calling a handler from another script
  • Next by Date: Re: Calling a handler from another script
  • Previous by thread: Re: Calling a handler from another script
  • Next by thread: Re: Calling a handler from another script
  • Index(es):
    • Date
    • Thread