• 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
Coerce from string to application command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Coerce from string to application command


  • Subject: Coerce from string to application command
  • From: Jed Verity <email@hidden>
  • Date: Thu, 09 Nov 2000 11:06:21 -0800

Hello again,

I tried to find this in the archives, to no avail. Is it possible to
translate a string into an application command? For example, without using
else ifs...

set doAction to "delete"
tell app "Finder" to doAction file "foo"

I'm using else ifs currently and would like to be able to avoid this for
future projects that involve applications with large volumes of commands. Is
it possible?

Many thanks,
Jed

P.S. Thanks to hcir for helping me with my Excel oversight.

~)~)~)~)~)~)~)~)~)~)~)~)~)
Jed Verity


  • Prev by Date: Re: Scripter (The Program)
  • Next by Date: List Archives now available
  • Previous by thread: Running AppleScript from a Java App.
  • Next by thread: Re: Coerce from string to application command
  • Index(es):
    • Date
    • Thread