Search found 32 matches

by Figgy78
Thu Nov 30, 2017 9:11 am
Forum: General programming
Topic: Error loading @FILE preprocessor
Replies: 9
Views: 8268

Re: Error loading @FILE preprocessor

Try reading this post. Thank you, SamuraiCrow. This is probably the right track. I changed my code to read: ;moai.CreateApp(FileToString("myFile.xml")) @FILE 1, "myFile.xml" moai.CreateApp(ReadString(1, FileLength(1))) This does however give me the following error: Error in line...
by Figgy78
Wed Nov 29, 2017 4:11 pm
Forum: General programming
Topic: Error loading @FILE preprocessor
Replies: 9
Views: 8268

Re: Error loading @FILE preprocessor

Tipsi wrote:The command FileToString() works without id.
Yes, I know it works without using the id.

My reason for using the pre processor command is to include the xml-file in the .exe file when compiling it.
by Figgy78
Wed Nov 29, 2017 12:23 pm
Forum: General programming
Topic: Error loading @FILE preprocessor
Replies: 9
Views: 8268

Error loading @FILE preprocessor

@FILE 1, "myFile.xml" ... moai.CreateApp(FileToString(1)) This code does not seem to work for me. Any idea why? I load and utilize files with ease using ie. @BRUSH, but with this I get: Error in line 178 (myApp.hws): Cannot read file 1 ! The filename is correct and it is located next to t...
by Figgy78
Wed Nov 29, 2017 12:17 pm
Forum: General programming
Topic: Open up a Finder/Explorer window
Replies: 9
Views: 7630

Re: Open up a Finder/Explorer window

Follow up question:

This works fine in Windows, but I compiled it for MacOS and tried it, and it doesn't seem to work with Finder?
by Figgy78
Wed Nov 29, 2017 9:47 am
Forum: General programming
Topic: Open up a Finder/Explorer window
Replies: 9
Views: 7630

Re: Open up a Finder/Explorer window

You should try OpenURL() command with the path that you want to explore
Exactly what I was looking for. Works like a dream.

I actually found this command but didn't bother to test it as I assosiate URL's with the Internet. I was schooled.
by Figgy78
Mon Nov 27, 2017 2:01 pm
Forum: General programming
Topic: Open up a Finder/Explorer window
Replies: 9
Views: 7630

Open up a Finder/Explorer window

Hi!

Does anyone have any idea on how I would go about opening a Finder/Explorer window at a specific path from within Hollywood?

I can't seem to find the correct function for this.

Thanks!
by Figgy78
Tue Oct 31, 2017 9:09 am
Forum: RapaGUI
Topic: Trouble getting values from listview
Replies: 2
Views: 3820

Re: Trouble getting values from listview

Ahhh.. That's great. Thanks. I think I learned something fundamental just now :)
by Figgy78
Tue Oct 31, 2017 9:03 am
Forum: General programming
Topic: MacOS IDE
Replies: 19
Views: 16525

Re: MacOS IDE

Seems like Lua/Javascript all work in Coda2, but obviously you can't right click a command for help or launch the code via Hollywood.app or any of that goodness. On another note.. When you right click on a file in Finder and select Open with Hollywood.app, where does the debug output end up? I tried...
by Figgy78
Fri Oct 27, 2017 1:56 pm
Forum: RapaGUI
Topic: Trouble getting values from listview
Replies: 2
Views: 3820

Trouble getting values from listview

Hi! I'm trying to fetch a couple of values from a listview. The listview has two columns: "fermentable" and "grams". I have entered two test rows: Row 0: "Fermentable1", "123" Row 2: "Fermentable2", "234" Using a button I made I want to wri...
by Figgy78
Wed Oct 25, 2017 9:02 am
Forum: General programming
Topic: MacOS IDE
Replies: 19
Views: 16525

Re: MacOS IDE

sashapont wrote:i set java in menu text->syntax mode
So Java is pretty close to the Hollywood syntax? I use Lua in TextMate, but it's not perfect.

E