• 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: Text preview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text preview


  • Subject: Re: Text preview
  • From: Andrew Oliver <email@hidden>
  • Date: Fri, 16 May 2003 10:58:53 -0700

How much text are you looking to display?

At its simplest level, there's the venerable 'display dialog' which will
display short strings in a regular dialog. I'm not entirely sure of the
limit of a display dialog's text but it might be enough.

Failing that, there are a number of OSAXen that will do the job.

24U's Appearance OSAX ( http://www.24usoftware.com/info.php?ID=4 ), for
example, contains a 'message window' object that can display an arbitrary
amount of text in a simple window over any app:

set theText to read file "Macintosh HD:somefile.txt"
set theWindow to create message window theText

And you can get a lot more sophisticated if you need to.

There are undoubtedly other OSAXen that perform similar tasks.

Andrew
:)

On 5/16/03 10:02 AM, "Michael Grant" <email@hidden> wrote:

> I'd like to write a Big Cat script to view text files without launching any
> application (including Terminal, but I'll assume that the Finder is
> running). I thought of swapping out the clipboard and using the Finder's
> Show Clipboard command, but I can't find a programmatic equivalent in the
> Finder's dictionary. I suppose I could use GUI scripting, but I'd rather
> avoid it if there's an alternative. Messing with the clipboard is getting
> pretty hackish anyway. It would be pretty easy to just create a window with
> a text field in AS Studio, but then we're back to launching an app and I
> might as well just open the file in BBEdit or whatever.
>
> Am I overlooking anything obvious?
>
> Thanks,
> Michael
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Text preview (From: Michael Grant <email@hidden>)

  • Prev by Date: Re: Run-Only script in OSX 10.2.6
  • Next by Date: Re: Run-Only script in OSX 10.2.6
  • Previous by thread: Text preview
  • Next by thread: script to connect servers when lost automaticly
  • Index(es):
    • Date
    • Thread