On Aug 29, 2008, at 12:33 PM, Emile Schwarz wrote:
Doesn't one save it as a Compiled Script to work in REALbasic?
Where is this in the REALbasic documentation ?
Page 627 of the User's Guide in 2008r3 has the following information:
----------
Preparing an
AppleScript to
Work in
REALbasic
In order for REALbasic to run an AppleScript, the entire script must
be enclosed in
an “on run” handler like this:
on run
//your script code goes here
end run
Next, your script must be saved as a compiled script. In the Script
Editor supplied
by Apple, choose File . Save As. Then choose “application” from the
Kind popup
menu.
-----------
But, there's a contradiction in the last paragraph. First, it says to
save as a compiled script. This creates a script that you can drag
into the project window. This appears just like the image in the
example there.
The guide goes on to tell you to choose Application from the Save As
menu popup in the Script Editor. Huh? If you save it as a Script, you
get an 8Kb Script. If you save it as an Application, you get a 60KB
stand-alone application.
They will both drag into the Project window of Rb but I don't know if
they are accepted equally. Someone with more experience can answer here.
My problem was that I misunderstood the thread and thought they were
talking about a script in the app but it was to create the actual
Application (Droplet) to be used on the desktop. This problem was
corrected in a reply.
Yes, I know, documentation sucks (or was like that some times ago).
Still does in many areas but I understand they are always working to
improve it.
Terry
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|