Pi not going down well

I am having trouble getting this script to run as an app. I am using Script Debugger 4 and outputting as an app. When debugging, I can see the window open just fine. But when running as an app, I get these errors, in order. How is “pi” related to Freehand? Does AppleScript have to source this ability from Freehand rather than the Mac OS?

thanks,
Levon

http://s101.photobucket.com/albums/m76/levonspradlin/misc/?action=view&current=pi01.jpg

http://s101.photobucket.com/albums/m76/levonspradlin/misc/?action=view&current=pi02.jpg

http://s101.photobucket.com/albums/m76/levonspradlin/misc/?action=view&current=pi03.jpg


on run
	set Pie to {pi} as string
	display dialog ("Have some Pi: " & Pie) buttons {"Sweet, I like pi."} with icon 1 default button 1
end run

Model: Dual 2.3GHz G5
AppleScript: 2.1.1/SD4
Browser: Firefox 2.0.0.4
Operating System: Mac OS X (10.4)

Moved to OS X…

Also, are those seconds and three dialogs appearing after you choose Edit in the first one? Are you saving as an application or an application bundle? Have you tried using Script Editor as well?

Also, have you tried using this:

-- you don't need `pi` inside a list
set Pie to pi as string

-- or
set Pie to AppleScript's pi as string