Using RB 2006 Rev 1 on Mac OS 10.4.5

I have successfully called an AppleScript without a parameter from a PushButton's Action but I have not been able to call an AppleScript with a parameter.

This works but has no parameter:
        Script1 'name of AppleScript dragged into Project

This will not compile:
        on run {x}
        Script1 'name of AppleScript dragged into Project
        end run

This also will not compile:
        on run {x}
        tell application "Finder" --start of Script1 code
        ....
        ....                                      --last of Script1 code
        end run

Page 540 of the REALbasic User's Guide was used in my attempts. Suggestions welcomed.

Thanks,

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