How to convert apple script into application

roboamg

Registered
Hi

I just wrote an apple script that works fine as apple script but when it is saved as application just do nothing.

Any help to fix the code and make it run as app is appreciated. The script take a file selected by the finders and opens it using AMIDE ( a medical image processecing software). The script runs fine as script but when executed as app it fails. I need it as app since I want to assign it to open a given file on the finder.

This is the code:
set myCommand to ""
set myCommand to "/usr/local/NeuroLab/bioimagesuite30/start_bioimagesuite"

tell application "Terminal"
tell window 1
do script myCommand
end tell
end tell
AppleScript


Thanks for your help
 
Back
Top