• 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
Communicating with process found by creator type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Communicating with process found by creator type


  • Subject: Communicating with process found by creator type
  • From: email@hidden (Mike Richmond)
  • Date: Mon, 19 Feb 2001 14:30:09 +0000

I am trying to locate and communicate with a scriptable app. As the app is
liable to be renamed I am locating it by creator type, but I can't then
communicate with it. I am doing the following:

on run
tell application "Finder"
repeat with proc in every process
if (creator type of proc) as string is equal to "ABCD" then
copy (name of proc) as string to myapp
end if
end repeat
end tell

tell application myapp to set x to 1
end run

It works fine if I "tell application myapp to quit", or if I "tell
application "myappname" to set x to 1". Where am I going wrong, or is it
just not possible to send commands which require my app's dictionary? I am
getting no errors, but my app's handler is never called.

Mike Richmond
Harlequin Ltd


  • Follow-Ups:
    • Re: Communicating with process found by creator type
      • From: Jolly Roger <email@hidden>
    • Re: Communicating with process found by creator type
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Another view point. (Was "a suggestion on the script corruption p roblem")
  • Next by Date: Re: Subject: Character mangling test
  • Previous by thread: Another view point. (Was "a suggestion on the script corruption p roblem")
  • Next by thread: Re: Communicating with process found by creator type
  • Index(es):
    • Date
    • Thread