• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Applescript newbie trying to do something easy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript newbie trying to do something easy


  • Subject: Re: Applescript newbie trying to do something easy
  • From: "Stockly, Ed" <email@hidden>
  • Date: Tue, 24 Mar 2009 10:36:33 -0700
  • Thread-topic: Applescript newbie trying to do something easy

> I am a computer engineer (half software developer, half hardware engineer) and
I can't find anything I would call an API for applescript, or a manual, or
language reference...

You want to start with the documentation -- including the AppleScript
language Guide -- from at the Apple Website.

Here's a good link:
http://developer.apple.com/documentation/ScriptingAutomation/AppleScript-dat
e.html#doclist

There are also several good books on appleScript.


Can't find any way to get any logging out of it, or insert breakpoints or
anything.

There is no built in run-time logging. You can use the AppleEvent log in
Script Editor.  For breakpoints and more advance debugging  try Script
Debugger, from LateNight software: www.latenightsw.com (There is a free
demo)

> Nothing tells me the "type of" for any variable or object ... or what
additional arguments are valid ... Basically I just stink at applescript.

In appleScript a variable can hold any class of object.

Set x to "a"
Set x to 2
Set x to choose file

Every scriptable application has an appleEvent dictionary that you can view
from Script editor.

> How does one go about figuring out that "main_account" was actually a list?

In ScriptDebugger you can explore all the elements of any application that
are available to AppleScript.


> How does one go about looking up the syntax that's available for the "move"
command in a specific context

Start with the AppleEvent dictionary for mail.

> Thanks a million ...
>
Keep in mind many find AppleScripter more intuitive than any other language,
but programmers experienced with other languages often find it completely
non-intuitive.

Good luck!

ES

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Applescript newbie trying to do something easy
  • Next by Date: Moving a file between two remote mounted volumes and maintaining creation / modification date
  • Previous by thread: Re: Applescript newbie trying to do something easy
  • Next by thread: stderr from 'do shell script': Not always in AS error or redirected as expected
  • Index(es):
    • Date
    • Thread