FreeFL,

Try this:

Let's assume your AppleScript is called Script1.

In RB, call the script using the following code:

Script1(choice, amount) 'where choice is a string (pay or receive) and amount is a double and has a value

In Script Editor, use the following code, save as Script1 and drag the file into your Project:

        on run {choice, amount}
                set cashflow to 100 --start with a value
                if choice = "pay" then
                        cashflow = cashflow - amount
                else if choice = "receive" then
                        cashflow = cashflow + amount
                end if
                display dialog "Cashflow is now " & cashflow
        end run

Paul Young
[EMAIL PROTECTED]


_______________________________________________
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