• 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
Re: SimpleText scriptable in OS X?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SimpleText scriptable in OS X?


  • Subject: Re: SimpleText scriptable in OS X?
  • From: Chris Nebel <email@hidden>
  • Date: Thu, 24 May 2001 15:24:33 -0700
  • Organization: Apple Computer, Inc.

Rob Jorgensen wrote:

> Has the OS X version of SimpleText become scriptable or is this some
> terrible mutilation which is the result of opening an OS X script
> under OS 9.1? Weird thing is that it compiles on my system and does
> not ask for the SimpleText application. My version of SimpleText
> (1.3.1) does not appear to be scriptable so why would this snippet
> even compile?

SimpleText is not scriptable in Mac OS X -- in fact, it's not even on the system unless you install the developer packages, since it's now sample code
-- but TextEdit, the Mac OS X replacement, is quite scriptable. This is probably some sort of rebinding oddity; I'm surprised it latched on to
SimpleText automatically. On my system, it asked me where TextEdit.app was. The reason the snippet compiles even so is that it happens to only use
terms defined in the Standard and Text suites, which are built into AppleScript.

> On a somewhat related note, when I open a OS X script under OS 9.1,
> and the script involves OS X's Finder, it asks for finder.app in
> order to compile. I select the OS 9.1 Finder and the script compiles.
> Are there any caveats to using this method? Are the 2 versions of
> Finder greatly different in terms of their AppleScript libraries?

The fact that it asks you for Finder.app is a bug -- it's supposed to rebind automatically. The two Finder dictionaries are similar where the
features are similar. (E.g., the basic file/folder classes are the same, but only Finder X has a column view.) The goal is to keep them as close as
possible so you can write scripts that work on either, provided you stay away from OS-specific features.


--Chris Nebel
AppleScript Engineering


References: 
 >SimpleText scriptable in OS X? (From: Rob Jorgensen <email@hidden>)

  • Prev by Date: Re: Calling other OSA Scripts
  • Next by Date: Re: automating e-mail replies
  • Previous by thread: SimpleText scriptable in OS X?
  • Next by thread: Re: applescript-users digest, Vol 2 #697 - 11 msgs
  • Index(es):
    • Date
    • Thread