Re: Script expects quoted text mystery
Re: Script expects quoted text mystery
- Subject: Re: Script expects quoted text mystery
- From: Gnarlodious <email@hidden>
- Date: Thu, 15 Jan 2004 00:35:16 -0700
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?
I mean any "tell block" inside the "using terms from" wrapper will inherit
the declared terminology, regardless of how many tell blocks it is nested
inside. Is that the principle?
Maybe I'm using the word "recursive" wrongly here.
>
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.
I get it! Excellent explanation Paul, thank you. The application provides a
translation at compile time which the script remembers.
This has been very educational.
_______________________________________________
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.