AppleScript

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

AppleScript

Post by JellyFish »

AppleScript always seemed to interest me in that it is more of a worded language rather then punctual.

What do you think of AppleScript? Do you think this is a good idea for a programming language? Do you know of any other languages like this?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

I've never really worked with it. Most likely on my Mac I'd just write a bash script. I'd like to try writing a Cocoa application though 8)
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

This may just be me, but I don't like languages that seem too... "English." They tend to require more typing and aren't as easy for me to follow.

Besides, why have so much wording in the actual code? That's what comments are for. :-D
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post by JellyFish »

I just thought it was interesting. I think that the English-like approach is a cool idea. If you think about it, characters like, $, #, { and }, :, etc, aren't really easy to type. Most of the time you need to hold shift along with the key, which could add up, and in the end it's not as readable.

I'm not against the standard way to program, just open to new ideas.

instead of:

Code: Select all

if (this == that)
{
//do something
}
you could have:

Code: Select all

if this equals that, (do somthing).
or something like it.

Then again 'equals' is more characters the == or = but seems more accessible in my opinion. :D
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

AppleScript is fairly "old skool." It's aged well however. It's always been more of a macro language than a real language. I generally don't think programming languages should have grammatic-like syntax. Mostly because grammatics are based on a language. While the language may be prevalent, you severely limit the penetration into other cultures and languages often. While this may only last a short time, it does hamper the adoption and adaption to it. Lingo is another language that's heavily (English) grammatic.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Yeah, as long as we're down to keywords, anyone can do it if they remember them. I oftentimes see code with Spanish and French variable names, but they easily use the keywords "if," "for," and "while."

Besides... The languages that are similar to the way that we speak are generally just for small scripting for those who aren't familiar with programming.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

superdezign wrote:Besides... The languages that are similar to the way that we speak are generally just for small scripting for those who aren't familiar with programming.
Lingo wasn't for small stuff. :)
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Wasn't? Or isn't? :P

:lol: I don't know. I've never used the language before. Is it similar to Basic?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

superdezign wrote:Wasn't? Or isn't? :P

:lol: I don't know. I've never used the language before. Is it similar to Basic?
Not at all.

http://www.adobe.com/products/director/ It used to be apart of Director. I don't know if it still is.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

ActionScript used to use a similar style too. lt was less that... lte was less than or equal to... Very strange to use, for me.

But ever since ActionScript 2.0, they've gone ecma. I hoped they did the same for Director.
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post by JellyFish »

I was thinking of making a HyperTalk-style langauge for the web, and using a javascript compiler to compile it to the equivalent.

Would it be sensable to go with a project like this? Would you find it useful?

HyperTalk-styled web language or not, just making an all-purpose, javascript compiled, web langauge.
thiscatis
Forum Contributor
Posts: 434
Joined: Thu Jul 20, 2006 11:00 am

Post by thiscatis »

JellyFish wrote:I was thinking of making a HyperTalk-style langauge for the web, and using a javascript compiler to compile it to the equivalent.

Would it be sensable to go with a project like this? Would you find it useful?

HyperTalk-styled web language or not, just making an all-purpose, javascript compiled, web langauge.
This would have given at least one parse error.
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post by JellyFish »

thiscatis wrote:
JellyFish wrote:I was thinking of making a HyperTalk-style langauge for the web, and using a javascript compiler to compile it to the equivalent.

Would it be sensable to go with a project like this? Would you find it useful?

HyperTalk-styled web language or not, just making an all-purpose, javascript compiled, web langauge.
This would have given at least one parse error.
What do you mean? What would give...?
thiscatis
Forum Contributor
Posts: 434
Joined: Thu Jul 20, 2006 11:00 am

Post by thiscatis »

nevermind :)
Back to my study books :cry:
Post Reply