Re: Text preview
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>) |