Arguments?
-
ihaveabellybutton
- Harmless
- Posts: 9
- Joined: Fri Dec 17, 2004 8:42 pm
Arguments?
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?
- zaudragon
- Growl Team
- Posts: 1852
- Joined: Sat Dec 04, 2004 5:05 am
- Location: Kensington, CA, USA
- Contact:
No.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.
on substitute(param1,param2,…)
is the way you do it. (or at least that's how I do it)
zaudragon wrote:No.
on substitute(param1,param2,…)
is the way you do it. (or at least that's how I do it)
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.
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:
- Chris Biagini
- Muffin
- Posts: 29
- Joined: Fri Feb 04, 2005 11:05 pm
- Contact:
- zaudragon
- Growl Team
- Posts: 1852
- Joined: Sat Dec 04, 2004 5:05 am
- Location: Kensington, CA, USA
- Contact:
OOPS!Chris Biagini wrote:What's this about no spaces now? I'm confused.
When you compile, AppleScript puts spaces between arguments to handlers.
You are correct:
My Map Of… Script wrote:Code: Select all
on substitute(streeeet, citi, stat, zip, cunt)
-
ihaveabellybutton
- Harmless
- Posts: 9
- Joined: Fri Dec 17, 2004 8:42 pm
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
Reason: You forgot to add the Arguments in the .pinfo file, and therefore the scripts do not work. Please correct this and re-submit
Download the script
-
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
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
Sorry I was trying to host the file on my computer. Heres a better link:
http://interlinx.netfirms.com/dictionarium.html
http://interlinx.netfirms.com/dictionarium.html
