AppleScript Syntax References -- WAS: Re: strcat in applescript?
AppleScript Syntax References -- WAS: Re: strcat in applescript?
- Subject: AppleScript Syntax References -- WAS: Re: strcat in applescript?
- From: Courtney Schwartz <email@hidden>
- Date: Thu, 11 Nov 2004 14:41:09 -0500
For syntax in programmer-oriented way (I assume that's appropriate,
since you know strcat):
Book:
"AppleScript: The Definitive Guide" by Matt Neuberg for O'Reilly
This is recommended by the ADC. Well worth the $39.95.
Online:
http://developer.apple.com/documentation/AppleScript/Conceptual/
AppleScriptLangGuide/index.html
This is Apple's language guide. If you're just learning the language it
can be sparse sometimes, which is why I recommend the above book as
well.
Since a lot of AppleScript is done for specific applications, you might
also find it worthwhile to find a reference for the key words of your
specific application's dictionary. for example, "word" in InDesign is a
different data construct than "word" in TextEdit, and that's a
difference often worth knowing.
Courtney Schwartz
On Nov 11, 2004, at 1:42 PM, J Charles Ferrari wrote:
use & instead of +
set x to "A"
set y to 2
set z to x & y --> "A2"
Charles
On Nov 11, 2004, at 10:36 AM, Miss Augustina wrote:
on intToStrcat (char a, int b)
return [ how do i return a + b without adding them? ]
end intToStrcat
so if a = X and b = 2, it should return "X2" as a string.
also when passing values to functions in AppleScript, the syntax
"value" is used. If i want to substitue a return value for a
function do I also need to concatenate quotes around my return value?
so if i wanted to use the above function in place of specifying a
static value basically, would Applescript recognize the return value
without quotes or do I need to concatenate them around the return
value?
set rowID to "2"
set colID to "A"
set x to Value of Cell intToStrcat(colID, rowID) <-- will return A2
not "A2".
sorry if these are totally obvious questions.. feel free to point me
to a reference if that is more appropriate.
TIA!!
augustina
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list
(email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________
Courtney Schwartz
Documentation Specialist
Global Technology Associates
3505 Lake Lynda Dr. Suite 109
Orlando, FL 32817 USA
(407) 380-0220 x1427
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden