• 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:00:44 +0400

Hello, Luther!

  Thank you for your answer, but it also doesn't work.
  You used one-word command ("activate"), that works with my approach too.
  But if command / property will contain two words, it won't compile.


Tue, 17 May 2011 07:44:18 -0500 letter from Luther Fuller <email@hidden>:

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


 _______________________________________________
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

References: 
 >tell app, name in string var (From: Leonid Bogdanov <email@hidden>)
 >Re: tell app, name in string var (From: Luther Fuller <email@hidden>)

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