Display Dialogs extend off screen

I am very new to applescript.

I am creating a script that contains a very long output that it is display using the “display dialog” command. But when output gets very long, buttons and window get lost. I just want to be able to scroll up/down to view the output.

please help!

thanks
pg

You may find AppleScript Studio better suited for this task.

Alternatively, check out one of the third-party UI scripting additions. They let you build more sophisticated dialogs than the lowly ‘display dialog’, and the learning curve is much lower than that of AppleScript Studio.

24U’s appearance OSAX ( http://www.24usoftware.com/AppearanceOSAX ) and Kanzu’s Extra Suites ( http://www.kanzu.com/ ) are two good bets.

Unfortunately, the “display dialog” command is very limited. There are third-party Scripting Additions that may better fit your needs. Here, however, is an example of “faking it”:

LotsOfInfo( { "Hello", "World", "Mello", "Yello" } )

on LotsOfInfo( listOfStrings )

	set countOfStrings to length of listOfStrings

	set currentIndex to 1
	set currentString to item currentIndex of listOfStrings

	repeat

		display dialog currentString buttons { "Done", "Back", "Next" } default button 3

		set userButton to button returned of result

		if ( userButton = "Next" ) then

			if ( currentIndex = countOfStrings ) then
				set currentIndex to 1
			else
				set currentIndex to currentIndex + 1
			end if

		else if ( userButton = "Back" ) then

			if ( currentIndex = 1 ) then
				set currentIndex to countOfStrings
			else
				set currentIndex to currentIndex - 1
			end if

		else
			exit repeat
		end if

		set currentString to item currentIndex of listOfStrings

	end repeat

end LotsOfInfo

You could also do this with the “default answer” parameter.