osascript

Can't do shell script with a repeat with i from 1 to n loop

This works (prints, for example, “3 arguments”): to run argv do shell script "echo " & (count argv) & " arguments" end run This doesn't (prints only “Argument 3: three”, and not the previous two arguments): to run argv do shell script "echo " & (count argv) & " arguments" repeat with i from 1 to (count argv) do shell script "ec...

How do you get the playtime of an iTunes track with applescript?

I'm just starting to play around with Geektool and applescripting to make my mac desktop fun and I've run into a question I can't seem to find an answer to. How do you get the current song playtime from an osascript command? I've found great resources on how to do just about anything else with iTunes and osascript on the command line b...

What is a good VM for developing a hobby language?

I'm thinking about writing my own little language. I found a few options, but feel free to suggest more. JVM Parrot OSA A lot of languages are using the JVM, but unless you write a Java-ish language, all the power the stdlib gives you is going to feel ugly; It's not very good at dynamic stuff either. Parrot seems a good VM for deve...