Re: How to get AppleEvents from AppleScript to Revolution
Re: How to get AppleEvents from AppleScript to Revolution
- Subject: Re: How to get AppleEvents from AppleScript to Revolution
- From: John Delacour <email@hidden>
- Date: Wed, 9 Oct 2002 21:37:16 +0100
- Mac-eudora-version: 5.3 alpha
At 4:04 pm -0400 9/10/02, email@hidden wrote:
Can someone point me to an example someone on the web, or show me a snippet
of code that shows how to send an AppleEvent from Applescript to another
application?
What I'm hoping to do is have my Applescript pass a username and password to
another application that I wrote using Revolution (www.runrev.com). I've
been reading up on that tool, and it appears that Revolution will permit me
to accept and react to AppleEvents. I'm just having a rough time finding
examples on the web of a "parameter-passing Apple-Event-generating
Applescript".
(* Send event to Receiver *)
tell app "Receiver" to DisplayData given user_:"jd", pass_:"secret"
JJJ
(* stay-open applet "Receiver" *)
on DisplayData given user_:u, pass_:p
activate
display dialog "User: " & u & return & "Password: " & p
end DisplayData
JD
_______________________________________________
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.