Arguments?

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
ihaveabellybutton
Harmless
Posts: 9
Joined: Fri Dec 17, 2004 8:42 pm

Arguments?

Post by ihaveabellybutton »

I tried to submit one of my scripts but it said there was a problem with the arguments. Can someone tell me what the arguments are?
User avatar
zaudragon
Growl Team
Posts: 1852
Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:

Post by zaudragon »

What do you mean arguments?

It might mean in your .scpt you have "on (insert subroutine name)(arg1, arg2)" with the space, or in your Info.plist you have the space of something…

I don't know…
Blog | X(tras)
Communists code without classes.
User avatar
dchoby98
Adium Team
Posts: 479
Joined: Thu Dec 02, 2004 6:17 am
Location: Canada, Eh?
Contact:

Post by dchoby98 »

Arguments are bits of data supplied to your script. For example,

/exec{uptime} has one argument, "uptime". Whereas,

/music has no arguments

Your "on substitute" function should be of the form

on substitute(param1, param2, ...)

up to howevermany parameters (arguments) you need.
User avatar
zaudragon
Growl Team
Posts: 1852
Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:

Post by zaudragon »

dchoby98 wrote:Arguments are bits of data supplied to your script. For example,

/exec{uptime} has one argument, "uptime". Whereas,

/music has no arguments

Your "on substitute" function should be of the form

on substitute(param1, param2, ...)

up to howevermany parameters (arguments) you need.
No.

on substitute(param1,param2,…)

is the way you do it. (or at least that's how I do it)
Blog | X(tras)
Communists code without classes.
User avatar
FredAkbar
Crema
Posts: 401
Joined: Sat Dec 04, 2004 1:00 am
Location: Santa Barbara, CA
Contact:

Post by FredAkbar »

zaudragon wrote:No.

on substitute(param1,param2,…)

is the way you do it. (or at least that's how I do it)
:?: isn't that what dchoby said?
Fred / Adium X 1.2.7
20" iMac w/ Intel Core Duo 2.0 GHz / 2 GB RAM / 256 MB Radeon X1600 / 250 GB HD / OS 10.5.4
FreeRice. Play a free vocab game on this ad-supported site to help fight world hunger.
Son of a Preacher Man
Crema
Posts: 499
Joined: Sat Dec 04, 2004 12:05 am
Location: Derby/York, UK
Contact:

Post by Son of a Preacher Man »

FredAkbar wrote:
zaudragon wrote:No.

on substitute(param1,param2,…)

is the way you do it. (or at least that's how I do it)
:?: isn't that what dchoby said?
Zau's has no spaces in :)
Image
User avatar
zaudragon
Growl Team
Posts: 1852
Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:

Post by zaudragon »

Yes, no spaces :P

Yeah, it's confusing…
Blog | X(tras)
Communists code without classes.
User avatar
Chris Biagini
Muffin
Posts: 29
Joined: Fri Feb 04, 2005 11:05 pm
Contact:

Post by Chris Biagini »

What's this about no spaces now? I'm confused.

When you compile, AppleScript puts spaces between arguments to handlers.
User avatar
zaudragon
Growl Team
Posts: 1852
Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:

Post by zaudragon »

Chris Biagini wrote:What's this about no spaces now? I'm confused.

When you compile, AppleScript puts spaces between arguments to handlers.
OOPS!

You are correct:
My Map Of… Script wrote:

Code: Select all

on substitute(streeeet, citi, stat, zip, cunt)
Blog | X(tras)
Communists code without classes.
ihaveabellybutton
Harmless
Posts: 9
Joined: Fri Dec 17, 2004 8:42 pm

Post by ihaveabellybutton »

Heres the script that got rejected. It worked before, but when I added Urbandictionary, it stopped working. Heres the message I got when I tried to upload it:

Reason: You forgot to add the Arguments in the .pinfo file, and therefore the scripts do not work. Please correct this and re-submit :) -Reikon


Download the script
Reikon

Post by Reikon »

I took a lok at your script and that was the only reason that popped into my mind of why it wasn't working. The applescript was fine, I restarted Adium and re-installed it twice..So naturally the info.plist file was suspect. I took a quick glance (it was late, I'll admit) and didn't find anything wrong other than, there was no mention of Arguments. So I assumed that was the problem.

Also, your link to the file doesn't work. (times out)

EDIT: you can e-mail the file to me at reikonmusha@gmail.com or FT it over AIM to reikonmusha
ihaveabellybutton
Harmless
Posts: 9
Joined: Fri Dec 17, 2004 8:42 pm

Post by ihaveabellybutton »

Sorry I was trying to host the file on my computer. Heres a better link:

http://interlinx.netfirms.com/dictionarium.html
Post Reply