Re: Dialog from script application displays raw codes (was: no subject)
Re: Dialog from script application displays raw codes (was: no subject)
- Subject: Re: Dialog from script application displays raw codes (was: no subject)
- From: Yvan KOENIG <email@hidden>
- Date: Sun, 27 Aug 2006 14:55:03 +0200
Le 27 août 2006 à 14:19, kai a écrit : …
One way of doing this is to use the run script command to act upon a text script (which will not yet have been compiled). When the terms contained in the text are encountered, the compiler is called upon to compile them as executable code - so that the script can be executed in the normal way. For this, the relevant dictionaries need to be accessed - after which the required terms become available to our main script.
Such a statement can be added at the beginning of the script, and needs no specific commands. Usually something like this should suffice (to access Finder's terms):
---------- run script "tell application \"Finder\" end" ----------
--- kai
Thanks Kai.
I just thaught that as the instruction is passed in a [tell application "Finder" … end tell] block all the required infos where available. I was wrong. At least I learnt something ;-)
I may also code this way:
set _ to (path to desktop) as Unicode text using terms from application "Finder" tell application "Finder" to display dialog "The item " & _ & " is of class : " & class of item _ end using terms from
Yvan KOENIG |
_______________________________________________
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