RE: scripting on macs in general
RE: scripting on macs in general
- Subject: RE: scripting on macs in general
- From: Olof Hellman <email@hidden>
- Date: Mon, 15 Jul 2002 16:17:22 -0700
>
I am new to applescript but have done software for a few decades...........
>
>
I see AS panned a bit in the lists and wonder if it is not possible
>
that a more general language might not work as well. Are the
>
interfaces to Java, etc. adequate to do all the things that one can
>
do in AS? What are the relative merits and limitations?
The word 'scripting' has different meaning depending on who is using it. I
like to think of think of AppleScript scripting in the sense of
'interapplication communication', whereas in the non-Mac world 'scripting'
seems to used to mean 'data manipulation' quite a bit. My rule is that
anything inside a tell block is scripting, and anything outside one is
programming. Examples:
tell application "my world modelling app"
make new country with properties {ruling system: oligarchy, name:
"Slavonikia"}
end tell
tell application "Style"
set the font size of the first character of every paragraph of the front
document to 24
end tell
There's no language better than AppleScript at forming this sort of
interapplication message. On the other hand, if you aren't planning to
leverage the existing functionality of an existing scriptable application,
AppleScript probably isn't your language of choice. Of course, with
AppleScript Studio, that's changing, because now you can also leverage
InterfaceBuilder and Cocoa.
- Olof
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.