Search found 36 matches

by nextyoyoma
Tue Nov 13, 2012 1:52 am
Forum: Mac OS
Topic: AppleScript not working
Replies: 9
Views: 7527

Re: AppleScript not working

Ok, so I finally figured out the problem, and I don't think it's a LiveCode issue. It appears that you for some reason, when running an applescript that talks to system events from LC, the system events process must already be running AND owned by the logged-in user. I don't understand why, but that...
by nextyoyoma
Mon Nov 12, 2012 3:51 pm
Forum: Mac OS
Topic: AppleScript not working
Replies: 9
Views: 7527

Re: AppleScript not working

Typo on my part, sorry. I'm running the command correctly. This machine is on 10.7.4. The issue occurs with both admin and non-admin users. The root of the problem is clearly that I have to talk to system events from somewhere else before I can talk to it from LiveCode. I have no idea why this is th...
by nextyoyoma
Mon Nov 12, 2012 2:43 pm
Forum: Mac OS
Topic: AppleScript not working
Replies: 9
Views: 7527

Re: AppleScript not working

Thanks for the reply, Mark. I actually want it to work just as I've laid out. See, I only want to keep them from running standalone java games (like minecraft). I don't want to keep them from using java web apps. The only way I could figure out to make a distinction between the two is that when runn...
by nextyoyoma
Fri Nov 09, 2012 11:36 pm
Forum: Mac OS
Topic: AppleScript not working
Replies: 9
Views: 7527

AppleScript not working

So I have a strange problem (bug?). I have an app that checks to see if the user is running a java application in the foreground (not a browser-embeded web app), and if so, kill it (this keeps kids from playing games while at school). I am using the following applescript to determine whether they ha...
by nextyoyoma
Fri Nov 02, 2012 7:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Advice on implementing a long shell script
Replies: 3
Views: 2740

Re: Advice on implementing a long shell script

Now, if you're running the shell script from a terminal and just want to check your log file from LC that should be easy enough to implement. If you want a more interactive/non-blocking approach to run your script from within livecode, you might look at "open process" alternatively could probably b...
by nextyoyoma
Fri Nov 02, 2012 6:28 pm
Forum: iOS Deployment
Topic: App stops working
Replies: 8
Views: 4726

Re: App stops working

Glad to know I'm not going crazy! Thanks.

I'm probably missing something obvious, but when I go to http://quality.runrev.com/, I don't see anywhere I can register. My credentials for the forums don't work, and I don't get a register prompt after submitting incorrect credentials.
by nextyoyoma
Fri Nov 02, 2012 6:18 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Advice on implementing a long shell script
Replies: 3
Views: 2740

Advice on implementing a long shell script

I am writing an app to partition a hard drive into multiple parts. I will use a shell command to do this, but the command can take some time to complete. Also, I would like the user to be able to see the output from the command in case there is a problem. What is the best approach to this? I was pla...
by nextyoyoma
Tue Oct 30, 2012 6:26 pm
Forum: iOS Deployment
Topic: App stops working
Replies: 8
Views: 4726

Re: App stops working

It may not be the database. Where are your videos coming from? Are they streaming or on disk? How are you managing the player object? Deleting and recreating it, or reassigning a url to an existing one? They are on disk (documents folder). Player object is being deleted and recreated each time. I k...
by nextyoyoma
Tue Oct 30, 2012 2:48 pm
Forum: iOS Deployment
Topic: App stops working
Replies: 8
Views: 4726

Re: App stops working

I was about to post more of my stack, but I I think I found the problem (but not the solution). Whenever my app locks up and I restart it, it fails to resume and crashes. After that it works fine. Looking at the system-generated crash report, I see that it is trying to resume over 500 threads, most ...
by nextyoyoma
Mon Oct 29, 2012 8:18 pm
Forum: iOS Deployment
Topic: App stops working
Replies: 8
Views: 4726

Re: App stops working

Just a quick update. I thought maybe the video was just getting stalled, but after testing it looks like the app is totally locking up. I set the player controls to visible, but when the issue happens they don't appear when tapping the screen.
by nextyoyoma
Mon Oct 29, 2012 6:16 pm
Forum: Mac OS
Topic: Newline character for logging
Replies: 7
Views: 6905

Re: Newline character for logging

Thanks, Richard, that's very helpful. I still don't understand why, if I'm on OS X, LiveCode thinks that a CR is the correct end-of-line marker, but at least I know how to deal with it now. Thanks again.
by nextyoyoma
Mon Oct 29, 2012 3:31 pm
Forum: Mac OS
Topic: Newline character for logging
Replies: 7
Views: 6905

Re: Newline character for logging

Sorry, when I started editing my post there were no replies. Just for completeness:

Code: Select all

command logEntry tMessage
put the short date && the long time && "-" && tMessage & return after URL "file:window.log"
end logEntry
Is what I am using. Should I not use URL for writing to text files?
by nextyoyoma
Mon Oct 29, 2012 2:28 pm
Forum: Mac OS
Topic: Newline character for logging
Replies: 7
Views: 6905

Newline character for logging

I'm using a livecode app to create a log on a computer, but the "return" constant uses a carriage return as the line delimiter. Since this is not the standard for UNIX files, it causes a problem with things like tail (can't use it at all) and awk (have to specify record separator). Is it possible to...
by nextyoyoma
Fri Oct 26, 2012 9:32 pm
Forum: iOS Deployment
Topic: App stops working
Replies: 8
Views: 4726

App stops working

We have an iPad running as a window sign. I wrote an app that runs on it all the time. It displays an image on the bottom with our helpdesk hours and a video on the top. The image and video change based on the time of day. That information is pulled from a mysql database. Basic workflow of the app i...
by nextyoyoma
Mon Oct 22, 2012 9:26 pm
Forum: iOS Deployment
Topic: mobileControl message path
Replies: 3
Views: 2596

Re: mobileControl message path

Thanks to both of you for the helpful info. The problem actually turned out to be that the message was being sent and received, but another part of my script (taken from a tutorial) did not work. The tutorial said to use "controlDelete" to delete the player before recreating it instead of "mobileCon...

Go to advanced search