Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

activate step not executing on certain Macs

 
   Macintosh computer (Home) -> Apple Scripts RSS
Next:  Problems with TIFF scaling via Folder Actions  
Author Message
Andre

External


Since: Feb 17, 2004
Posts: 2



(Msg. 1) Posted: Tue Feb 17, 2004 4:49 pm
Post subject: activate step not executing on certain Macs
Archived from groups: alt>comp>lang>applescript (more info?)

This one has me stumped. I'm hoping someone has the answer, or even a
clue to point me in the right direction.

I have a script that retrieves the name of the currently selected box
in QuarkXPress and tries to find a matching record in a FileMaker
database by searching for that name string in a specified field.

It goes something like this (abbreviated for convenience):

tell application "QuarkXPress"
do some stuff to get the name of the current box
end tell

tell application "FileMaker Pro"
activate
do menu menu item "Show All Records" of menu "Records"
tell document "MyDatabase.fp5"
show me the record matching name of Quark box
end tell
end tell

The script is triggered from OSA menu in Quark. It works just fine on
my Mac running OS 9.2.1. I copy the script to my colleague's Mac--same
Mac model, OS version, AppleScript version, Quark, and FileMaker as
well.

The script fails at the activate FileMaker step. In other words, the
script does its thing in Quark and then the FileMaker icon starts
flashing in the application menu. Clicking on a FileMaker window (i.e.
activating FileMaker) allows the script to continue successfully.

What's going on? Why won't FileMaker activate like it's told to do? I
suspect some system component is missing on my colleague's Mac. But
what? Anyone?

Thanks
Andre

 >> Stay informed about: activate step not executing on certain Macs 
Back to top
Login to vote
Patrick Stadelmann

External


Since: Nov 12, 2003
Posts: 361



(Msg. 2) Posted: Wed Feb 18, 2004 2:12 am
Post subject: Re: activate step not executing on certain Macs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <367f15f0.0402171349.13361c3 RemoveThis @posting.google.com>,
boeya RemoveThis @orvis.com (Andre) wrote:

 > What's going on? Why won't FileMaker activate like it's told to do? I
 > suspect some system component is missing on my colleague's Mac. But
 > what? Anyone?

As a workaround, you can try to ask the Finder to bring FM to the front :

tell application "Finder"
set frontmost of process "FileMaker Pro" to true
end

Patrick
--
Patrick Stadelmann <Patrick.Stadelmann RemoveThis @unine.ch><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: activate step not executing on certain Macs 
Back to top
Login to vote
Andre

External


Since: Feb 17, 2004
Posts: 2



(Msg. 3) Posted: Wed Feb 18, 2004 12:52 pm
Post subject: Re: activate step not executing on certain Macs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Patrick Stadelmann <Patrick.Stadelmann.DeleteThis@unine.ch> wrote in message news:<Patrick.Stadelmann-D44CA2.23121117022004.DeleteThis@news.fu-berlin.de>...

 > As a workaround, you can try to ask the Finder to bring FM to the front :
 >
 > tell application "Finder"
 > set frontmost of process "FileMaker Pro" to true
 > end

Very interesting. Thanks.

In any case, would you care to speculate what might be the cause of
the problem to begin with?

Andre<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: activate step not executing on certain Macs 
Back to top
Login to vote
Patrick Stadelmann

External


Since: Nov 12, 2003
Posts: 361



(Msg. 4) Posted: Wed Feb 18, 2004 10:12 pm
Post subject: Re: activate step not executing on certain Macs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <367f15f0.0402180952.5f7b6ef5 DeleteThis @posting.google.com>,
boeya DeleteThis @orvis.com (Andre) wrote:

 > In any case, would you care to speculate what might be the cause of
 > the problem to begin with?

I'm sorry, but I don't see what could cause this behaviour.

Patrick
--
Patrick Stadelmann <Patrick.Stadelmann DeleteThis @unine.ch><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: activate step not executing on certain Macs 
Back to top
Login to vote
Simon Slavin1

External


Since: May 16, 2004
Posts: 625



(Msg. 5) Posted: Thu Feb 19, 2004 11:47 am
Post subject: Re: activate step not executing on certain Macs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 17/02/2004, Andre wrote in message
<367f15f0.0402171349.13361c3.TakeThisOut@posting.google.com>:

 > The script fails at the activate FileMaker step. In other words, the
 > script does its thing in Quark and then the FileMaker icon starts
 > flashing in the application menu. Clicking on a FileMaker window (i.e.
 > activating FileMaker) allows the script to continue successfully.

Check to see if FileMaker on the second computer isn't set to start up
networking or something like that. It looks like it's trying to open
a dialog window and the system won't let it do that unless it's at the
front of the user interface.

Simon.
--
Using pre-release version of newsreader.
Please tell me if it does weird things.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: activate step not executing on certain Macs 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> Apple Scripts All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]