• 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: Prevent asking to locate application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Prevent asking to locate application
      • From: Paul Berkowitz <email@hidden>
References: 
 >Prevent asking to locate application (From: Joseph Weaks <email@hidden>)
 >Re: Prevent asking to locate application (From: Hanaan Rosenthal <email@hidden>)
 >Re: Prevent asking to locate application (From: Joseph Weaks <email@hidden>)
 >Re: Prevent asking to locate application (From: Walter Ian Kaye <email@hidden>)
 >Re: Prevent asking to locate application (From: Joseph Weaks <email@hidden>)
 >Re: Prevent asking to locate application (From: Walter Ian Kaye <email@hidden>)
 >Re: Prevent asking to locate application (From: Joseph Weaks <email@hidden>)

  • Prev by Date: Re: AppleScript & HTML Again...
  • Next by Date: Re: Writing a 'print selection' service in AS?
  • Previous by thread: Re: Prevent asking to locate application
  • Next by thread: Re: Prevent asking to locate application
  • Index(es):
    • Date
    • Thread