Go Back   The macosxhints Forums > Working with OS X > OS X Developer



Reply
 
Thread Tools Rate Thread Display Modes
Old 01-08-2005, 04:46 PM   #1
cwtnospam
League Commissioner
 
Join Date: Jan 2005
Posts: 8,475
Applescript commands

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.
cwtnospam is offline   Reply With Quote
Old 01-08-2005, 06:12 PM   #2
roncross@cox.net
MVP
 
Join Date: Jan 2004
Posts: 1,760
Try looking at the applescript dictionary

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:

http://www.railheaddesign.com/pages/...asciiseek.html

thx
RLC
roncross@cox.net is offline   Reply With Quote
Old 01-08-2005, 06:25 PM   #3
cwtnospam
League Commissioner
 
Join Date: Jan 2005
Posts: 8,475
Downloaded it, but it won't expand. Is it an Applescript?
cwtnospam is offline   Reply With Quote
Old 01-08-2005, 06:30 PM   #4
cwtnospam
League Commissioner
 
Join Date: Jan 2005
Posts: 8,475
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.
cwtnospam is offline   Reply With Quote
Old 01-08-2005, 09:45 PM   #5
subscriber3
Triple-A Player
 
Join Date: Oct 2004
Posts: 126
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):

http://www.seanet.com/~jonpugh/softw...andsX3.0d3.hqx

this article discusses your problem (pre-OS X links):

http://forums.macosxhints.com/archiv...p/t-29413.html
subscriber3 is offline   Reply With Quote
Old 01-08-2005, 10:00 PM   #6
cwtnospam
League Commissioner
 
Join Date: Jan 2005
Posts: 8,475
Thanks! I'll give it a try.
cwtnospam is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 01:50 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.