• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can Smile be scripted to open dictionary?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Can Smile be scripted to open dictionary?
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Migrating scripting additions to Mac OS X
  • Next by Date: Can Smile be scripted to open dictionary?
  • Previous by thread: Re: applescript-users digest, Vol 2 #807 - 15 msgs
  • Next by thread: Re: Can Smile be scripted to open dictionary?
  • Index(es):
    • Date
    • Thread