New topic: 

Applescripts no longer recognized?

<http://forums.realsoftware.com/viewtopic.php?t=29659>

       Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic         Author  
Message       tamar           Post subject: Applescripts no longer 
recognized?Posted: Thu Aug 20, 2009 3:11 pm                        
Joined: Thu Aug 20, 2009 1:16 pm
Posts: 1              I've successfully built a number of programs over the 
past few years that call an Applescript to trigger an action on an external I/O 
device (connected via USB). 

I opened up some buggy alpha code in RB 2009r3, and attempted to run it from 
the IDE, but the debugger pops up with a compiling error:
Code:You must use the value returned by this function:
myscript


I tried opening a backup copy in 2007r1 (in which it was last saved), and same 
problem. I also:
 created new Desktop Application, called that same script from a PushButton, 
same problem (would not compile) attempted same in Tiger 10.4.11 (I'm running 
10.5.8 on my main machine), same problem opened a different program where the 
script had been working, and it works fine in new and old versions of RB 

In all of this, I've noticed that when I drag the locally stored copy of the 
script to the Project Window, the icon is a default 'document' type icon, as 
opposed to a small 'scripting' icon in the functional programs. I've narrowed 
it down to when the icon looks right, it works, and when it looks wrong, it 
doesn't.

I verified the references are to the same files (myscript.app). 

I'm stumped!! Ideas??   
                            Top                pony           Post subject: Re: 
Applescripts no longer recognized?Posted: Thu Aug 20, 2009 4:34 pm              
                 
Joined: Sat Nov 11, 2006 2:43 pm
Posts: 167
Location: DFW area, Texas, USA              I must admit I've never included an 
AppleScript in any of applications, I prefer a shell.

I checked the user guide and it seems to contain outdated info. According to 
the guide the script must be compiled - this appears to be no longer the case.
I was able to add an AppleScript (not compiled, just a regular script) and call 
it - it worked just fine.
Code:myScript
Adding a compiled script seems to require you use the result (a string 
according to the IDE), however I could not get the compiled string to launch. 
The following compiled and ran, but my compiled script did not execute:
Code:dim result as string
result = myCompiledScript


A temp fix is to use a script, rather than a compiled script.

Hopefully someone who knows more will come on by and give a better answer . . . 
  
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to