?

Log in

No account? Create an account
 
 
03 May 2005 @ 02:06 am
 
AAAAAA programming is so fucking hard when you can't just ask people questions!!!!

when making an automator applescript, the parameters passed to it are an array?
 
 
Current Music: Bonus Game 1 - Street Fighter III - 3rd Strike Original Sountrack
 
 
 
Patrickmcpat on May 3rd, 2005 05:00 pm (UTC)
Hmm
I often ask the interweb questions like that. In my experiece most scripts and exicutables are passed parameters in the form of an array. And normaly a character array at that.

Why must programming be the devil?
the subliminal messagereynaldo77 on May 3rd, 2005 10:50 pm (UTC)
Re: Hmm
You have to make sure to get the "argc" count and "argv" array in the right order, too... I spent like 3 hours debugging a C main mehod that was working the whole time, but I specified the input parameters in the wrong order so it was trying to use the single int as the array, and the array as the count, and it was making things behave very oddly...
Patrickmcpat on May 4th, 2005 12:11 am (UTC)
Re: Hmm
The devil has you!! function function function!! be gone Java spirits, be gone!!

method is just such a sucky word... even if it is more descriptive. good times.
Siner Dsirnerd on May 4th, 2005 01:47 am (UTC)
Re: Hmm
I hate C. I spent 5 hours trying to rewrite a simple iostream thing in C++. Then I figured out that my original code wasn't working because how iostreams handle endl. I replaced endl with "\n" and it worked perfectly.... so dumb! argc and argv are dumb names too. I like function better than method. I miss java.
the subliminal messagereynaldo77 on May 4th, 2005 03:58 am (UTC)
Re: Hmm
Function is the C way to say it, method is Java. I actually can't believe that I said method because I like function better... Java is the devil!!
MegaManmegaman on May 4th, 2005 08:19 pm (UTC)
Re: Hmm
I think what I really need to do is learn applescript better so that I don't have to try and reverse enginer scripts that work using only a ruidemtary knowledge of java and yeah.
I mean, I have a "definitive guide to applescript book" so I sould just read it.
Siner Dsirnerd on May 3rd, 2005 06:52 pm (UTC)
tigar
wow, i want tigar on erin's computer. The widgets and automator sound like fun to play with. It's like they took opensource and made it more friendly and accessable.
the subliminal message: BSDaemon logoreynaldo77 on May 3rd, 2005 10:51 pm (UTC)
Re: tigar
I just want it so I can make an Automater script that does nothing and name it "Dan"
MegaManmegaman on May 4th, 2005 08:13 pm (UTC)
Re: tigar
hey, I've managed to make several automator scripts that do nothing! I'll send you some.