• 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[2]: tell app, name in string var
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[2]: tell app, name in string var


  • Subject: Re[2]: tell app, name in string var
  • From: Leonid Bogdanov <email@hidden>
  • Date: Tue, 17 May 2011 17:07:54 +0400

Shane,

  Looks nice, but again, app name is hardcoded in one statement :)
    using terms from application "Microsoft Excel"

  and
    using terms from application appName

  doesn't work.


Tue, 17 May 2011 23:02:06 +1000 letter from Shane Stanley <email@hidden>:

> On 17/5/11 10:30 PM, "Leonid Bogdanov" <email@hidden> wrote:
>
> >   How can I make the second script compilable?
>
> Like this:
>
> set appName to "Microsoft Excel"
> using terms from application "Microsoft Excel"
> tell application appName
> return display alerts
> end tell
> end using terms from
>
> Although Luther's suggestion is usually a better idea. You can also get the
> ID like this:
>
> id of application "Microsoft Excel"
>
>
> --
> Shane Stanley <email@hidden>
> 'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Re[2]: tell app, name in string var
      • From: Zack Jarrett <email@hidden>
    • Re: Re[2]: tell app, name in string var
      • From: Shane Stanley <email@hidden>
References: 
 >tell app, name in string var (From: Leonid Bogdanov <email@hidden>)

  • Prev by Date: Re: tell app, name in string var
  • Next by Date: Re: Re[2]: tell app, name in string var
  • Previous by thread: Re: tell app, name in string var
  • Next by thread: Re: Re[2]: tell app, name in string var
  • Index(es):
    • Date
    • Thread