Can Smile be scripted to open dictionary?
Can Smile be scripted to open dictionary?
- Subject: Can Smile be scripted to open dictionary?
- From: "Fernando O. Raineri" <email@hidden>
- Date: Tue, 26 Jun 2001 15:02:06 -0400
Hello. I'm using MacOS 9.1, AS 1.6, and Smile 1.8.0.
When using Smile manually, navigating the menu File->Open
and selecting a scripting addition (or any scriptable application)
and pressing return opens the dictionary of the scripting
addition (or application).
Can this behavior be scripted? Naively I tried
on run
set theFolder to (path to scripting additions)
set theSA to theFolder & "AppleScript Formating" as text
tell application "Smile 1.8.0"
open theSA
end tell
end run
The script runs, but appears to only add a blank line to the worksheet.
I realize that "Open" is not in Smile's dictionary; in fact I don't see any
obvious event in the dictionary to "open" a script. But I might not be
seeing the obvious.
I also tried to use the Finder, as in
on run
set theFolder to (path to scripting additions)
set theSA to theFolder & "AppleScript Formating" as text
tell application "Finder"
select alias theSA
try
open selection using alias "mildyears:AppleScript
Utilities:Smile1.8.0US:Smile :Smile 1.8.0"
on error theError
display dialog theError
end try
end tell
end run
but it errors saying "can't get alias theFullPathToTheScriptingAddition".
Replacing alias with file in "select alias theSA" gives the same error.
Can this be done in any way?
Thank you.
Fernando