• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dialog from script application displays raw codes (was: no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Dialog from script application displays raw codes (was: no subject)
      • From: kai <email@hidden>
References: 
 >(no subject) (From: Yvan KOENIG <email@hidden>)
 >Re: Dialog from script application displays raw codes (was: no subject) (From: kai <email@hidden>)

  • Prev by Date: Re: Dialog from script application displays raw codes (was: no subject)
  • Next by Date: Re: Dialog from script application displays raw codes (was: no subject)
  • Previous by thread: Re: Dialog from script application displays raw codes (was: no subject)
  • Next by thread: Re: Dialog from script application displays raw codes (was: no subject)
  • Index(es):
    • Date
    • Thread