PDA

View Full Version : Putting a Title in a Applescript application


andrewb
11-04-2003, 05:51 AM
Hi,
I have written a short application, only a few lins using applescript. I was wondering is there anyway that i can put a title on my app ie when it is launched it retrieves the info for me but i cant get a title to appear on the application ??
Thank you
Andrew

robJ
11-04-2003, 07:44 AM
I don't understand what you mean by putting a title on your application. Do you mean a dialog that displays the info?
set info_ to "This is a dialog"
display dialog info_
-- Rob

andrewb
11-04-2003, 09:15 AM
I have that. What i mean is when you enter the code you gave me it appears just above the buttons "cancel & ok". I want my text to appear above the line. When you run the applet there is a line across it. is there anyway to get text to appear above the line.(As if its a Header)
thank you

robJ
11-04-2003, 10:45 AM
No, there's no way to do that in a plain "display dialog" window. You would need to use AppleScript Studio (probably overkill for such a simple thing) or something like Extra Suites (http://www.kanzu.com/) or 24U Appearance OSAX (http://www.24usoftware.com/AppearanceOSAX). I am a big fan of Extra Suites because it offers a lot for a little. :-)

-- Rob

greggo
11-11-2003, 08:35 PM
Pashua 0.7 will do what I think you are asking.

http://q41.de/downloads/pashua_en/

rspress
11-22-2003, 10:51 PM
If you are building this app in Xcode the you should be able to do what you wish be accessing the main menu.nib file.

It is under >Groups&Files>Nib Files

This should launch Interface Builder and you can go crazy customizing the look and feel of your app.

If you are unsure how to link interface elements to Applescripts then you might consider just sticking with a simple Applescript applet.

Mikey-San
11-23-2003, 12:11 AM
Indeed, this is something you can do in AppleScript Studio, by way of Xcode/Project Builder and Interface Builder.

Install the Developer Tools CD stuff and go wild. Check out the example scripts included with the install, too.