• 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: "Gary (Lists)" <email@hidden>
  • Date: Thu, 11 May 2006 18:14:57 -0400

"Todd Geist" wrote:

> On May 11, 2006, at 1:23 PM, Carlos Ysunza wrote:
>
>> I don't know what you're trying to do but to copy some data from
>> some cell
>> or field in FileMaker pro you don't need the annoying GUI scripting.
>>
>> You can use just a simple variable inside your script to store the
>> data
>> Set MyData to cell "NameOfCell" of database "DatabaseName' or similar
>> or you can use
>> Tell application "FileMaker Pro Advanced" to" do menu menu item
>> "Copy" of
>> menu "Edit"
>> I hope this help
>
> Thank you, but I very much need to manipulate the GUI in this instance.  It
> has nothing to do with getting data in or of FileMaker fields.  Nor will using
> a "tell" block directed at FileMaker help, since in this instance FileMaker
> hasa dialog open which prevents from responding to any direct Apple Events

How are you going to pull a menu if there's a dialog? You say this dialog
would prevent using FM's own 'do menu' command, so are you trying to select
and copy text out of the dialog?  Is the dialog in your way (can't be
dismissed yet, and you're trying to work menus around it?)

Carlos may have summed it up:

>>> I don't know what you're trying to do but to copy some data from some cell
>>> or field in FileMaker pro you don't need the annoying GUI scripting.

You said this originally:

>> I have been trying to use GUI scripting to manipulate some dialogs but I
>> can't get it to work.

But then you described your problem as being able to target (activate) an
application:

>> Is there some way other then "Activate application" that will bring FileMaker
>> to the front so system events can act on it?

What's wrong with the more common

    tell application "Something"
      activate
      ...
    end tell

?

> I need to access the GUI

You still don't make the case for that. (Not that you really don't need
this, but it's still unclear _what_ is the problem which prevents all other
clipboard copying.)


For clipboard copying, you have a number of options without going all GUI.

1. Standard Addtions provides a suite of 'Clipboard Commands'
2. The shell provides a suite of clipboard tools:  pbcopy and pbpaste
3. FileMaker provides its own 'do menu' command, but this becomes less
useful than one might think, depending on the script interactivity with FM.


Also, if you insist that you need GUI scripting, did you use any AppleScript
tools to explore the menu?  There's some kind of basic pre-installed tool,
but I can't recall the name of it (I don't use it, sorry), that will let you
poke at those menus to get an AppleScript description.


Perhaps if you described the _task_ and not the _script_ that would be more
helpful.

--
Gary

 _______________________________________________
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

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

  • Prev by Date: Re: GUI Scripting Issue
  • Next by Date: Re: GUI Scripting Issue
  • Previous by thread: Re: GUI Scripting Issue
  • Next by thread: Re: GUI Scripting Issue
  • Index(es):
    • Date
    • Thread