• 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: GUI Scripting Issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GUI Scripting Issue


  • Subject: Re: GUI Scripting Issue
  • From: Bill Cheeseman <email@hidden>
  • Date: Thu, 11 May 2006 17:38:25 -0400
  • Thread-topic: GUI Scripting Issue

on 2006-05-11 10:45 AM, Todd Geist at email@hidden wrote:

> This is the script
>
> activate application "FileMaker Pro Advanced"
> tell application "System Events"
> tell process "FileMaker Pro Advanced"
> click menu item "Copy" of menu 1 of menu bar item "Edit" of menu bar 1
> end tell
> end tell
> --> The result is that the applescript times out waiting for
> FileMaker to activate.
>
> Is there some way other then "Activate application" that will bring
> FileMaker to the front so system events can act on it?

What happens if you change the first line to:

 activate application "FileMaker Pro Advanced.app"?

In general, the Activate command should be really fast if the target
application is already running. So try your script with FM Pro Advanced
already running, and see if the menu bar changes (showing that it has come
to the front).

If FM Pro Advanced is not already running, the script should nevertheless
pause itself while it waits for FM Pro Advanced to launch. If you see that
FM Pro Advanced has successfully launched but your script is still hung,
something's probably wrong on your end.

There is a possibility that your naming is wrong. Some applications have a
different name for the process than they have for the application. The only
way to find out is to run Apple's Activity Monitor to see what the name of
the process is, or use PreFab UI Browser's AppleScript menu to generate the
wrapper tell block for you -- it knows when a different name is required for
the process tell block.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: GUI Scripting Issue
      • From: Todd Geist <email@hidden>
References: 
 >GUI Scripting Issue (From: Todd Geist <email@hidden>)

  • Prev by Date: Some problems with FileMaker Pro 8
  • Next by Date: Re: Some problems with FileMaker Pro 8
  • Previous by thread: GUI Scripting Issue
  • Next by thread: Re: GUI Scripting Issue
  • Index(es):
    • Date
    • Thread