• 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: topping a window of an application not understanding AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: topping a window of an application not understanding AppleScript


  • Subject: Re: topping a window of an application not understanding AppleScript
  • From: julifos <email@hidden>
  • Date: Thu, 12 Jun 2003 13:31:04 +0200

> Dear AppleScipt-programmers,
>
> I'm not experienced using AppleScript, so please excuse, if my question
> is "too easy" to be asked. ;-)
>
> I'm trying to run an application through AppleScript that does not
> understand apple-script at all. This works fine by the "Launch Application"
> command. My problem is now, that I want the window of this application to
> be topped. Usually I'd use
>
> tell application "Finder"
> activate application "MMX"
> end tell
>
> where "MMX" is the name of the application. But this seems not to work
> becuause
> the application I want to activate doesn't understand the AppleScript-command
> "activate": I get the AppleScript error message "Connection is Invalid".
>
> Does anyone know how to activate the (already opened) window of an application
> that does not understand AppleScript, maybe by GUI commands, or is this
> totally
> impossible?
>
> Thanks for your help,
>
> Gerald

Hi, Gerald!

You can try this:

#####################################
tell application "Finder" --> or "System Events"
set frontmost of application process "Microsoft Word" to true
end tell
#####################################

JJ
_______________________________________________
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: topping a window of an application not understanding AppleScript
      • From: Gerald Dietze <email@hidden>
  • Prev by Date: Re: Delete FTP file
  • Next by Date: Re: Parsing filenames
  • Previous by thread: topping a window of an application not understanding AppleScript
  • Next by thread: Re: topping a window of an application not understanding AppleScript
  • Index(es):
    • Date
    • Thread