Re[2]: tell app, name in string var
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