revGoURL fails in standalone application

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
axe
Posts: 5
Joined: Fri Nov 10, 2006 9:18 pm

revGoURL fails in standalone application

Post by axe » Thu Oct 09, 2008 11:05 pm

Hi there,
I work on PPC Mac with OSX version 10.5.5
the following code:
answer "Sorry pwrWnds demo has expired." with "OK" or "Buy now"
if it is "Buy now" then
try
revGoURL "http://www.runrev.com"
catch theMistake
answer theMistake
end try
end if
opened the website both from the message box and Revolution Studio 2.8.1 built 472 so I saved it as standalone application.
Both the MacOSX and the MacOSX PowerPC-32 applications failed to open the URL.
The dialog box answer theMistake appeared instead and gave theMistake as 573,15,1,revGoURL
Could someone try it out and help please?

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Post by mwieder » Fri Oct 10, 2008 11:04 pm

Read the footnote in the documentation about revGoURL. You need to include the internet library explicitly when you build the standalone.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sat Oct 11, 2008 1:54 am

Hi Axe,

FYI, the error is:

Type: Handler (can't find handler)
Object name: card id 60439
Line:(row 15 col 1)
Hint: revGoURL

(sorry, the object name is nonsense, everything else is correct).

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

axe
Posts: 5
Joined: Fri Nov 10, 2006 9:18 pm

Thanks Guys

Post by axe » Mon Oct 13, 2008 6:16 am

I included all libraries script and all I could find on the settingsdialog box.
No joy!
I contacted support and I got tired of waiting.
I did it all in applescript
Much quicker and appl is onli 100kb instead of 7.3 mb
Long live applescript!

Post Reply