• 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: How to simulate C's function pointer in AppleScript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to simulate C's function pointer in AppleScript?


  • Subject: Re: How to simulate C's function pointer in AppleScript?
  • From: Philip Aker <email@hidden>
  • Date: Thu, 23 Oct 2008 04:22:42 -0700

On Oct 23, 2008, at 3:58 AM, André Berg wrote:

The question now is how can I correctly pass, from the top-level script, myHandlerToTime() in the statement property of the Timer script so that it gets used as the direct parameter to the run script command inside the Timer script?

on doHandlerToTime()
display dialog "beep"
end doHandlerToTime

script Timer
property procedure : missing value
on timeit()
run script procedure
end timeit
end script

set Timer's procedure to doHandlerToTime
Timer's timeit()

Passing parameters is a different story ;-)


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

  • Follow-Ups:
    • Re: How to simulate C's function pointer in AppleScript?
      • From: André Berg <email@hidden>
    • Re: How to simulate C's function pointer in AppleScript?
      • From: André Berg <email@hidden>
References: 
 >How to simulate C's function pointer in AppleScript? (From: André Berg <email@hidden>)

  • Prev by Date: Re: How to simulate C's function pointer in AppleScript?
  • Next by Date: Help with renaming files in folder from text file document
  • Previous by thread: Re: How to simulate C's function pointer in AppleScript?
  • Next by thread: Re: How to simulate C's function pointer in AppleScript?
  • Index(es):
    • Date
    • Thread