--This applescript will work in 10.4 for Realbasic 5.5
-- Short delay between UI actions
set shortDelay to 0.2
-- Long delay between UI actions
set LongDelay to 0.5

tell application "REALbasic 5.5.5 Mac OS X"
        activate
        tell application "System Events"
                --System Events is to focus on Realbasic
                tell process "REALbasic 5.5.5 Mac OS X"
                        
                        tell menu bar 1
                                tell menu bar item "Edit"
                                        tell menu "Edit"
                                                click menu item "Encrypt..." -- 
item 26
                                                delay shortDelay
                                                keystroke "password"
                                                keystroke tab
                                                delay shortDelay
                                                keystroke "password"
                                                keystroke return
                                        end tell --edit menu
                                end tell --edit menu bar item
                        end tell --menu bar
                        
                end tell --realbasic
        end tell --system event
end tell --application


--This one will work for 10.4 and Realbasic 2006
-- Short delay between UI actions
set shortDelay to 0.2
-- Long delay between UI actions
set LongDelay to 0.5

tell application "REALbasic 2006"
        activate
        tell application "System Events"
                --System Events is to focus on Realbasic
                tell process "REALbasic 2006"
                        
                        tell menu bar 1
                                tell menu bar item "Edit"
                                        tell menu "Edit"
                                                click menu item 14 -- item 
"Encrypt..."
                                                delay shortDelay
                                                keystroke "password"
                                                keystroke tab
                                                delay shortDelay
                                                keystroke "password"
                                                keystroke return
                                        end tell --edit menu
                                end tell --edit menu bar item
                        end tell --menu bar
                        
                end tell --realbasic
        end tell --system event
end tell --application

(*
You will have to change the delay time, shortDelay/longDelay, according to your system speed
*)





On Mar 26, 2006, at 10:36 PM, Eric M.Williams wrote:

Hello list -

Is there a way to automate the Encrypt... function in the IDE? I've got a project with about 30-40 items that I want to encrypt. Running version 5.5 in OS X, it looks like AppleScript won't do it, and I can't get UI Scripting to feed the appropriate events into RB.

I'd be open to any suggestions - this is really getting tedious.

Thanks!

Eric M. Williams
Oxalyn Software
http://software.oxalyn.com/

AE Monitor
http://software.oxalyn.com/AEMonitor/

_______________________________________________
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>


_______________________________________________
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