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

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


  • Subject: "double tell" / "using terms from" not working?
  • From: Thomas Engelmeier <email@hidden>
  • Date: Tue, 22 Jun 2004 19:41:15 +0200

Hi,

I have the situation I need to state explicit a script location and the script target.
The absolute script location is required as it will be an embedded script in an application package.
The script target is even more crucial as I need to select between two running copies of Quark XPress 5 (classic) and 6 ( on OS X)

Whatever I tried today, nothing worked. How may I use a double tell script in MacOS 10.3.x?
And what is the best way to pass a tell target between target boundaries, short of a Carbon ProcessSerialNumber (PSN)?

tell application "Finder"
-- I tried the variants "as file", "as alias", "as application", and without any "as"

set theApp to ("Diskworld:Development:Sourcen:MacOS:C_CPP:Aktuelles:BarcodeInserter:OldTiBook Version:BarcodeInserter:BarcodeHelper") as string
-- does nothing:
launch theApp
-- does also nothing:
launch application theApp
-- the only working form: open file theApp
end tell

using terms from application "BarcodeHelper"
tell application theApp -- gives an error about the form most of the time
-- gives an error: "BarcodeHelper does not understand the setCaption message"
set result to setCaption("11", "das ist ein Test")
end tell
end using terms from

tell application "BarcodeHelper"
tell application theApp
-- gives an error: "BarcodeHelper does not understand the setCaption message"
set result to setCaption("11", "das ist ein Test")
end tell
end tell

tell application theApp
-- gives an error: "BarcodeHelper does not understand the setCaption message"
set result to setCaption("11", "das ist ein Test")
end tell


--
Thomas Engelmeier * 0172/8186046
_______________________________________________
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.


  • Follow-Ups:
    • Re: "double tell" / "using terms from" not working?
      • From: Walter Ian Kaye <email@hidden>
  • Prev by Date: Active application - how to tell? One more
  • Next by Date: Re: Active application - how to tell? One more
  • Previous by thread: Re: Active application - how to tell? One more
  • Next by thread: Re: "double tell" / "using terms from" not working?
  • Index(es):
    • Date
    • Thread