• 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: "double tell" / "using terms from" not working?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "double tell" / "using terms from" not working?


  • Subject: Re: "double tell" / "using terms from" not working?
  • From: jj <email@hidden>
  • Date: Wed, 23 Jun 2004 10:06:46 +0200

The propper code would be:

using terms from application "BarcodeHelper"
tell application "path:to:BarcodeHelper"
--> statements here
end tell
end using terms from

When you use:

set result to setCaption("11", "das ist ein Test")

Seems really that you are using your own handler, but targeting to
BarcodeHelper (that it's because BarcodeHelper doesn't understand the
setCaption message). Just use "my" or adjust your code:

#############################################################
using terms from application "BarcodeHelper"
tell application "path:to:BarcodeHelper"
set result to my setCaption("11", "das ist ein Test")
end tell
end using terms from

to setCaption(x, y)
return {x, y}
end setCaption
#############################################################

Or, if "setCaption" is who uses BarcodeHelper:

#############################################################
set result to setCaption("11", "das ist ein Test")

to setCaption(x, y)
using terms from application "BarcodeHelper"
tell application "path:to:BarcodeHelper"
--> do something with x
--> do something with y
--> return some result
end tell
end using terms from
end setCaption
#############################################################


jj

--
http://www.macscripter.net/
http://www.osaxen.com/
_______________________________________________
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: Code works in Scripteditor but not ASS
  • Next by Date: Re: How to fill a site and prees a button
  • Previous by thread: Re: "double tell" / "using terms from" not working?
  • Next by thread: Re: "double tell" / "using terms from" not working?
  • Index(es):
    • Date
    • Thread