Nope, I didn't know that and can't believe how easy that was!

But it does bring up my next question: is there some consistent way to get AppleScript to feed data back to REALBasic as easy as using "run" to go the other way?




From: David Glass <[EMAIL PROTECTED]>
Date: Sun, 29 Jan 2006 04:45:08 -0800

Do you know that all AppleScripts called from Rb have to have an explicit 'run' handler?

If so, your 'run' handler would have parameters for the items provided by the interface:

on run(inboundWidth, inboundHeight, inboundColor)
.....
end run

Then your call to the script looks like this:

myScript(3,5,color*)

* - not sure how you would specify the desired color. Off the top of my head, I would think you could have an AS that grabbed the names of all the swatches and returned them to Rb as a delimited list to use filling a popup menu.

all inbound values are strings if memory serves so you may have to
handle conversions to the proper types depending on what ID needs.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to