AppleScript in Web App

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
vkozme
Posts: 5
Joined: Tue Aug 18, 2009 2:16 pm

AppleScript in Web App

Post by vkozme » Wed Aug 19, 2009 9:52 pm

Hi, everyone,
I am new to this forum but I've already met some very nice people.
I have learned how to run apple script from within a stack.
The problem that I am experiencing right now is that apple script works in a stack but it does not work in standalone web application.
Is it a glitch of revMedia Alpha or I am missing something?
I very appreciate your input.
vkozme

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Wed Aug 19, 2009 10:43 pm

Hi vkozme,
I get it: you mean a revlet, the alpha version of runRev's webbased stacks.
If you talked about a standalone I thought you meant a self-contained program, like any regular application for Mac, Windows and Linux, that you can make with the Studio and Enterprise version of Revolution. With revMedia one can not deploy standalones.

Since I dont have the Enterprise license, only Studio, I have to wait for RunRev to open the revlet technology to Studio owners. That said I don't know whether revlets support applescript. You can make calls to the shell though.
But shurely someone will chime in.
regards
Bernd

vkozme
Posts: 5
Joined: Tue Aug 18, 2009 2:16 pm

Post by vkozme » Thu Aug 20, 2009 3:43 am

Hi, Bernd,
Thank you for the reply. I appreciate your input.
May I ask you a personal question? What part of Germany do you live? I have been to Arnsdadt and Zuhl back in 90's. I have a lot of good memories about Germany. I am living in New Orleans now. I still have several very good friends in Germany.
Nice talking to you.
vkozme

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Post by malte » Thu Aug 20, 2009 6:40 am

Hi vkozme,

did you let the standalone builder set the permissions for the revLet automatically? If so, it might be worth to try to set them by hand and see if that makes any difference (I suspect it will require at least file access and maybe also shell access to run apple script).

Hope that helps,

Malte

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut » Thu Aug 20, 2009 9:29 am

I can't test for applescript, but I just did a test using vbscript. It did not work to run a vbscript through the

Code: Select all

do <vbscript> as "vbscript"
method. Instead, I used the older method of writing a script to a temporary file location and then using the shell to run it, and that worked fine.
It obviously runs in the context of the client computer, so even though the revlet was served from Apache on the Linux hosting package it ran the script locally on my PC.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Thu Aug 20, 2009 10:01 am

Hi, vkozme,
What part of Germany do you live?
I live close to cologne in the industrial area of germany (ruhr area) in Bochum. It used to be the area of coal mines and steel mills, not anymore though.
I wonder what you where doing in Suhl and Arnstadt. That is in the former eastern part, so you must have seen quite a bit of remnants of the german democratic republic. Those were exciting times, historic even.

regards
Bernd

Post Reply