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

Re: Call a handler from applescript


  • Subject: Re: Call a handler from applescript
  • From: John Adam Bloom <email@hidden>
  • Date: Fri, 30 Jan 2004 20:43:38 -0600

From: Yan Won
1) created a new applescript studio application in XCode called "test2".
2) placed the following code in test2.applescript:

on my_signal(txt)
display dialog txt
return 0
end my_signal

Dontcha need to:

on my_signal(txt)
tell application "System Events"
display dialog txt
return 0
end tell
end my_signal

???

Or you could make your "test2.app" capable of displaying dialogs/sheets ;-)

HTH,

JB

John Adam Bloom
Systems Consultant
Apple Certified Technical Coordinator
Certified Member- Apple Consultants Network
Member- Project Management Institute
email@hidden
homepage.mac.com/jambomac
SMS: email@hidden
(847) 668-2221
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Interface builder question
  • Next by Date: Shell-sandwich a file in 2 variable strings
  • Previous by thread: How to press a button in a Finder window
  • Next by thread: A small but an indistinguishably significantly gripe or 2 !
  • Index(es):
    • Date
    • Thread