• 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: why won't this compile?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why won't this compile?


  • Subject: Re: why won't this compile?
  • From: Steven Angier <email@hidden>
  • Date: Fri, 28 Dec 2001 19:36:45 +1100
  • Organization: Macscript.com

Paul Berkowitz wrote:

> For OS's earlier than 9, you need to compile the script using
> raw codes, without the 'using terms from'. (Or maybe this was introduced in
> OS 8.6, I forget.)

I think that it is much simpler to use the double-tell technique as this works reliably on
systems 7.5 and above (just make sure the first tell is to the variable):

--first get the local name of the target app
tell app "Finder" to set InternetExplorer to name of (application file id "MSIE")

--make subsequent calls like so:
tell app InternetExplorer to tell app "Internet Explorer"
--statements
end


Steven Angier
Macscript.com


  • Follow-Ups:
    • Re: why won't this compile?
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: why won't this compile? (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: why won't this compile?
  • Next by Date: Re: why won't this compile?
  • Previous by thread: Re: why won't this compile?
  • Next by thread: Re: why won't this compile?
  • Index(es):
    • Date
    • Thread