Re: Prevent asking to locate application
Re: Prevent asking to locate application
- Subject: Re: Prevent asking to locate application
- From: Joseph Weaks <email@hidden>
- Date: Mon, 29 Mar 2004 15:07:01 -0600
New problem. Now I remember why I hard-coded the name of the app to
begin with. The problem is that this won't compile:
set theApp to "Microsoft Word"
tell app theApp
do Visual Basic "Application.Activate
end tell
Is this where I can use a "using terms from" block? Does a "using terms
from" block ask the script user to locate that app when the script is
placed on their machine in the same way a "tell application" block?
Thanks,
Joe
On Mar 29, 2004, at 1:43 AM, Joseph Weaks wrote:
The discussion has helped me realize I should change my structure to
something like:
tell app theApp to activate
if theApp is "Appleworks" then
--Appleworks code
else if theApp is "Microsoft Word" then
--Word VBA code
....
end if
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.