Page 1 of 1

Arguments?

Posted: Thu Mar 17, 2005 4:21 am
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?

Posted: Thu Mar 17, 2005 4:47 am
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…

Posted: Thu Mar 17, 2005 5:14 am
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.

Posted: Thu Mar 17, 2005 5:34 am
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)

Posted: Thu Mar 17, 2005 5:49 am
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?

Posted: Thu Mar 17, 2005 10:18 am
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 :)

Posted: Fri Mar 18, 2005 1:27 am
by zaudragon
Yes, no spaces :P

Yeah, it's confusing…

Posted: Fri Mar 18, 2005 2:54 am
by Chris Biagini
What's this about no spaces now? I'm confused.

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

Posted: Fri Mar 18, 2005 3:04 am
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)

Posted: Fri Mar 18, 2005 4:45 pm
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

Posted: Sun Mar 20, 2005 10:20 pm
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

Posted: Thu Mar 24, 2005 5:38 pm
by ihaveabellybutton
Sorry I was trying to host the file on my computer. Heres a better link:

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