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

Re: tell app, name in string var


  • Subject: Re: tell app, name in string var
  • From: Luther Fuller <email@hidden>
  • Date: Tue, 17 May 2011 07:44:18 -0500

On May 17, 2011, at 7:30 AM, Leonid Bogdanov wrote:

I want to pass a name of an app to which tell a command in a string variable and then do some stuff.

Use this ...

set applID to "com.apple.TextEdit"
tell application id applID
activate
end tell

The 'application id' is the value of the key 'Bundle identifier' or 'CFBundleIdentifier' found in the application's "Info.plist" file. Use 'Show Package Contents' to see this file and 'Property List Editor' to open it.

 _______________________________________________
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[2]: tell app, name in string var
      • From: Leonid Bogdanov <email@hidden>
References: 
 >tell app, name in string var (From: Leonid Bogdanov <email@hidden>)

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