Re: Script expects quoted text mystery
Re: Script expects quoted text mystery
- Subject: Re: Script expects quoted text mystery
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 14 Jan 2004 22:46:59 -0800
On 1/14/04 9:55 PM, "Gnarlodious" <email@hidden> wrote:
>
Entity Paul Berkowitz spoke thus:
>
>
> using terms from application "iCab"
>
> tell application myAppPath
>
> -- now you're flying: use normal iCab terms, no raw codes needed
>
> end tell
>
> using terms
>
>
So you are saying that every recursive process in the "using terms from"
>
wrapper inherits the terminology?
I don't see any recursive process there. I don't even know what a recursive
process might be in this context. What exactly do you mean? What's supposed
to be recursive here? Could you rephrase your question, in plainer English?
By using the 'using terms from' block, you can compile a script on your own
computer if you have the application whose terms are being used, even though
you are using a variable to specify the application name or path. In other
words, the dictionary application terms, such as 'OpenURL' for iCab, retain
their "meaning" - namely the <<event xxxxxxxx>> or <<class xxxx>> raw codes
that really provide the Apple Events sent to the app. At the compiler level,
those raw codes are enabled. Without 'using terms from', a term like
'OpenURL' is just seen as an undefined variable and will error. That's as
true inside a tell block to a variable as outside any tell block. 'using
terms from' makes sure that the raw codes are compiled, not the plain text.
So even on older OS's that don't have the benefit of being able to script
'using terms from', the raw codes are still there, just as when using
Emmanuel's raw code method. (Is that what you meant by "recursive"?) But
you, the scripter, don't have to bother with them. You can use the
application terms as you do in a regular tell block to that application, and
the compiler takes care of the raw codes for you.
--
Paul Berkowitz
_______________________________________________
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.