View Full Version : Applescript commands
01-08-2005, 04:46 PM
Is there anyplace on the web that I can get a fairly comprehensive list of Applescript commands? Applescript Help is just an infinite loop of irrelevant information. I don't want long expanations, I just want to know what is available. For example, I'd like to know what commands would let me know when a key is pressed and what it's value is, but I can't find much to do with user input other than dialogs.
01-08-2005, 06:12 PM
Applescript commands are based off of applications for the most part. Try looking at the applescript dictionary for a list of commands. Every application that is scriptable will have an applescript command.
There are tons of applescript web sites out there, but unless you know what you are trying to do, it can be a daughty task to fish through all the information.
There is a good book out there called "AppleScript, the definitive guide". Go to the book store and check it out.
If you want the value of key when you press it, you might want to look at ASCII seek. It will give you the equivalent ASCII code for a particular keystroke:
01-08-2005, 06:25 PM
Downloaded it, but it won't expand. Is it an Applescript?
01-08-2005, 06:30 PM
Wow. It finally expanded. I didn't think it could take so long, so I thought it was hanging.
It isn't Applescript. I need to see the code so I know how to get user input.
01-08-2005, 09:45 PM
there are a number of AppleScript sites on the net. watch out, some are pre-OS X information.
I think that AppleScript is a "higher level" scripting language, if you will. it doesn't get close to the hardware at all. the closest thing to what you are asking for would be to put up a dialog box and check if a button is pressed.
however, it is possible to write code and compile it to interface with AppleScript. these modules are called osaxen.
you might find the following osax useful (OS X version):
this article discusses your problem (pre-OS X links):
01-08-2005, 10:00 PM
Thanks! I'll give it a try.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.