Communicating with process found by creator type
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