Re: "double tell" / "using terms from" not working?
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.