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: James Reynolds <email@hidden>
- Date: Thu, 10 Feb 2005 16:37:47 -0700
I know it has been a long time, but I would like to thank you for
this. You just saved me alot of time. Here is how I'm using it (on
computers with both FileMaker Pro 6 and 7)
tell application "Finder"
open application file id "FMP7"
set app_ref to (first process whose creator type is "FMP7")
set theApp to file of app_ref as text
end tell
using terms from application "FileMaker Pro"
tell application (theApp)
getURL "fmp7://username:email@hidden/FileName"
end tell
end using terms from
--
Thanks,
James Reynolds
University of Utah
Student Computing Labs
email@hidden
801-585-9811
At 1:10 PM +0200 6/23/04, Thomas Engelmeier wrote:
At 10:06 Uhr +0200 23.06.2004, jj wrote:
Hello jj,
Thanks for your advice..
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:
Well, in fact it did understand it but AppleScript (or Script
Debugger) seem to go havoc if you try it once with a messed up
syntax (i.e.: without the "launch" command) . Quitting and starting
Script Debugger cures it.
Just for the record, the following works, hope it saves someone else
from long try and error:
#### source for foo
set myPath to (path to me as string)
tell application "Finder"
set myFolder to (container of item myPath) as text
end tell
set theApp to myFolder & "bar"
using terms from application "bar"
-- *OUCH*: bar does not understand setCaption without "as string":
tell application (theApp as string)
launch -- *OUCH*: AS / Script debugger goes crazy if
launch is missing
set theResult to setCaption("11", " das ist ein Test")
end tell
end using terms from
### source for bar
on setCaption(a, b)
return a & b & "Hello Scriptworld"
end setCaption
--
_______________________________________________
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.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden